/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --stfxblue: #001b40;
  --white: #FFFFFF;
  --marigold: #d5a845;
  --skyblue: #425f8e;
  --skylight: #5e739e;
  --pumpkin: #d35d33;
  --greenleaf: #b1cd49;
  --text: hsl(0, 0%, 8%);
  --accent1: hsl(0, 0%, 20%);
  --accent2: hsl(0, 0%, 50%);
  --accent3: hsl(0, 0%, 70%);
  --accent4: hsl(0, 0%, 85%);
  --accent5: hsl(0, 0%, 93%);
  --nav-h: 56px;
}

/* ─── Reset / Base ───────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: Carlito, Calibri, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--accent4);
  color: var(--text);
  line-height: 1.65;
  padding-top: var(--nav-h);
}

a {
  color: var(--stfxblue);
}

a:hover {
  color: var(--marigold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── Typography ─────────────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: "EB Garamond", "Garamond Pro", "Adobe Garamond Pro", Garamond, Georgia, serif;
  color: var(--stfxblue);
  line-height: 1.25;
  font-variant-numeric: lining-nums;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--marigold);
  display: inline-block;
}

h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

h3:first-child {
  margin-top: 0;
}

h4 {
  font-size: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

h4:first-child {
  margin-top: 0;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.3rem;
}

/* ─── Layout ─────────────────────────────────────────────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 3.5rem 0;
}

section:nth-of-type(even) {
  background: var(--accent5);
}

/* ─── Navigation ─────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--stfxblue);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  color: var(--marigold);
  font-family: Carlito, Calibri, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-text-stroke: 0px var(--white);
  ;
}

.nav-brand:hover {
  color: var(--marigold);
}

.nav-links {
  display: flex;
  gap: 0.1rem;
  flex-wrap: nowrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.3rem 0.3rem;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--marigold);
  background: rgba(200, 168, 75, 0.12);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--marigold);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ─── StFX logo ──────────────────────────────────────────────────────────────── */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.25rem 0;
}

.logo-container img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
}

/* ─── Header section ─────────────────────────────────────────────────────────── */
#header {
  background: var(--white);
  color: #fff;
  text-align: center;
  padding: 4rem 0 3.5rem;
}

#header h1 {
  color: var(--stfxblue);
  font-size: 2.6rem;
  max-width: 700px;
  margin: 0 auto 1rem;
}

#header .subtitle {
  color: var(--stfxblue);
  font-family: "EB Garamond", "Garamond Pro", "Adobe Garamond Pro", Garamond, Georgia, serif;
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
}

.dates-badge {
  display: inline-block;
  background: var(--white);
  border: none;
  color: var(--stfxblue);
  padding: 0.4rem 1.1rem;
  border-radius: 24px;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  font-weight: bold;
  margin-bottom: 1.2rem;
}

/* ─── Organizer ──────────────────────────────────────────────────────────────── */
.organizer {
  display: inline-block;
  margin-top: 1.25rem;
  background: rgba(0, 27, 64, 0.05);
  border: 1px solid rgba(0, 27, 64, 0.15);
  border-radius: 6px;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
  color: var(--stfxblue);
}

.organizer a {
  font-weight: 600;
  color: var(--stfxblue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.organizer a:hover {
  color: var(--marigold);
}

/* ─── Conference photo ───────────────────────────────────────────────────────── */
.photo-placeholder {
  background: linear-gradient(135deg, var(--accent3), var(--accent5));
  border: 2px dashed var(--accent1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  color: var(--text);
  font-size: 1rem;
  text-align: center;
  padding: 2rem;
}

figure {
  margin: 0;
}

figcaption {
  text-align: center;
  color: var(--accent1);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ─── Placeholder cards ──────────────────────────────────────────────────────── */
.placeholder-card {
  background: var(--white);
  border: 0px dashed var(--accent4);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.placeholder-card strong {
  display: block;
  color: var(--stfxblue);
  font-style: normal;
  margin-bottom: 0.25rem;
}

/* ─── Schedule placeholder ───────────────────────────────────────────────────── */
.schedule-placeholder {
  background: var(--white);
  border: 0px dashed var(--accent4);
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  color: var(--text);
  font-style: italic;
}

/* ─── Participants list ──────────────────────────────────────────────────────── */
#participants-list {
  list-style: none;
  padding: 0;
  columns: 1;
  margin-bottom: 1.5rem;
}

#participants-list li {
  break-inside: avoid;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--accent4);
  font-size: 0.95rem;
}

#participants-list li .participant-name {
  font-weight: 600;
}

#participants-list li .participant-affil {
  color: var(--text);
  font-size: 0.95rem;
}

#participants-list li.empty-state {
  columns: 1;
  color: var(--accent1);
  font-style: italic;
  border: none;
}

/* ─── Sponsors grid ──────────────────────────────────────────────────────────── */
.funder-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  margin-top: 1rem;
}

.funder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 240px;
}

.funder-logo {
  background: var(--white);
  border: 0px dashed var(--accent4);
  border-radius: 6px;
  width: 260px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent3);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.25rem;
  overflow: hidden;
}

.funder-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.funder-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--stfxblue);
  text-align: center;
}

.funder-desc {
  font-weight: 400;
  color: var(--accent2);
  font-size: 0.8rem;
}

/* ─── Accommodations ─────────────────────────────────────────────────────────── */
.accommodation-details {
  background: var(--white);
  border: 1px solid var(--accent4);
  border-radius: 6px;
  padding: 1.5rem 2rem;
  margin-top: 1rem;
}

.accommodation-details dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.6rem 1rem;
}

.accommodation-details dt {
  font-weight: 600;
  color: var(--stfxblue);
  padding-top: 0.1rem;
}

.accommodation-details dd {
  margin: 0;
}

.book-link {
  display: inline-block;
  margin-top: 1rem;
  background: var(--marigold);
  color: var(--stfxblue);
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.15s;
}

.book-link:hover {
  background: #003060;
  color: var(--marigold);
}

/* ─── Things to do ───────────────────────────────────────────────────────────── */
.things-group {
  margin-bottom: 2rem;
}

.things-group h3 {
  color: var(--stfxblue);
  border-left: 3px solid var(--marigold);
  padding-left: 0.6rem;
  margin-bottom: 0.6rem;
}

.things-note {
  background: #FFF8E7;
  border-left: 3px solid var(--marigold);
  padding: 0.6rem 1rem;
  margin-top: 1rem;
  font-size: 0.92rem;
  border-radius: 0 4px 4px 0;
}

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--marigold);
  color: var(--stfxblue);
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: #003060;
  color: var(--marigold);
}

.btn-secondary {
  background: var(--white);
  color: var(--stfxblue);
  border: 1px solid var(--stfxblue);
  padding: 0.55rem 1.2rem;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}

.btn-secondary:hover {
  background: var(--accent5);
}

/* ─── Forms ──────────────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  color: var(--stfxblue);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--accent4);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--marigold);
  box-shadow: 0 0 0 3px rgba(200, 168, 75, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

.form-check label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: auto;
  accent-color: var(--marigold);
}

.flag-badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: middle;
}

.flag-private {
  background: #fef3c7;
  color: #92400e;
}

.flag-talk {
  background: #d1fae5;
  color: #065f46;
}

.flag-notes {
  background: #e0e7ff;
  color: #3730a3;
}

.form-group .field-note {
  font-size: 0.82rem;
  color: var(--text);
  margin-top: 0.3rem;
}

.form-message {
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
  font-size: 0.92rem;
  margin-top: 0.75rem;
}

.form-message.success {
  background: #E8F5EC;
  color: #1B5E20;
  border: 1px solid #A5D6A7;
}

.form-message.error {
  background: #FEECEF;
  color: #7B0014;
  border: 1px solid #F5A3B0;
}

/* ─── Modal ──────────────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.modal.hidden {
  display: none;
}

.modal-panel {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  max-width: 460px;
  width: 100%;
  padding: 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--accent3);
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}

.modal-close:hover {
  color: var(--text);
  background: var(--accent5);
}

.modal-panel h3 {
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}

.modal-panel .modal-desc {
  color: var(--accent3);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* ─── Toast ──────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--stfxblue);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  z-index: 3000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: opacity 0.4s;
}

.toast.success {
  background: var(--greenleaf);
}

.toast.error {
  background: var(--pumpkin);
}

.toast.hidden {
  display: none;
}

/* ─── Abstract submission page ───────────────────────────────────────────────── */
.page-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.page-wrap h1 {
  margin-bottom: 0.25rem;
}

.page-wrap .page-sub {
  color: var(--accent3);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.latex-note {
  background: #F0F4FF;
  border-left: 3px solid var(--stfxblue);
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  border-radius: 0 4px 4px 0;
}

.latex-note code {
  font-family: "Courier New", Courier, monospace;
  background: #dde3f5;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

/* ─── Admin panel ────────────────────────────────────────────────────────────── */
.admin-body {
  font-family: Carlito, Calibri, system-ui, -apple-system, sans-serif;
  background: var(--accent4);
  color: var(--text);
  min-height: 100vh;
  padding-top: 0;
}

.admin-header {
  background: var(--stfxblue);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-header h1 {
  color: var(--marigold);
  font-size: 1.15rem;
  margin: 0;
}

.admin-header .admin-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-login {
  max-width: 380px;
  margin: 4rem auto;
  background: var(--white);
  border: 1px solid var(--accent4);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.admin-login h2 {
  margin-bottom: 1.5rem;
}

.admin-stats-bar {
  background: var(--accent5);
  padding: 0.45rem 1.5rem;
  display: flex;
  gap: 1.75rem;
  font-size: 0.82rem;
  font-weight: bold;
  color: var(--stfxblue);
  flex-wrap: wrap;
  border: 2px solid var(--stfxblue);
}

.admin-stats-bar strong {
  color: var(--stfxblue);
}

.admin-sticky-top {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ─── Admin section nav bar ──────────────────────────────────────────────────── */
.admin-section-nav {
  /* Reset inherited nav { position:fixed } rule from public-site styles */
  position: static;
  height: auto;
  z-index: auto;
  background: var(--stfxblue);
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  scrollbar-width: none;
}

.admin-section-nav::-webkit-scrollbar {
  display: none;
}

.admin-section-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--white);
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.01em;
}

.admin-section-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.admin-section-tab.active {
  color: var(--marigold);
  border-bottom-color: var(--marigold);
}

.admin-section-panel {
  display: none;
}

.admin-section-panel.active {
  display: block;
}

.admin-filter-bar {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--accent5);
  border-bottom: 1px solid var(--accent4);
}

.filter-btn {
  background: none;
  border: 1px solid var(--accent4);
  color: var(--stfxblue);
  padding: 0.2rem 0.65rem;
  border-radius: 3px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.12s;
}

.filter-btn.active {
  background: var(--marigold);
  border-color: var(--marigold);
  color: var(--stfxblue);
  font-weight: 600;
}

.filter-btn:hover:not(.active) {
  background: var(--accent4);
}

.admin-panels {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.admin-panel {
  background: var(--white);
  border: 1px solid var(--accent4);
  border-radius: 6px;
}

.admin-panel-header {
  background: var(--stfxblue);
  color: #fff;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-radius: 6px 6px 0 0;
}

.admin-panel-header h2 {
  color: var(--marigold);
  font-size: 1rem;
  margin: 0;
  border: none;
  padding: 0;
  display: block;
}

.admin-panel-body {
  padding: 0;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th {
  background: #1a3a5c;
  color: #fff;
  text-align: left;
  padding: 0.55rem 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--accent4);
  vertical-align: top;
}

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

.admin-table tr:nth-child(even) td {
  background: var(--accent5);
}

.admin-table tr.expand-row td {
  background: #F8F8FF;
  padding: 0;
}

.admin-table tr.expand-row pre {
  margin: 0;
  padding: 0.75rem 1rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.82rem;
  font-family: "Courier New", Courier, monospace;
  color: var(--text);
  background: #F8F8FF;
  border-top: 1px solid var(--accent4);
  max-height: 300px;
  overflow-y: auto;
}

.admin-empty {
  padding: 2rem;
  text-align: center;
  color: var(--accent3);
  font-style: italic;
}

.btn-approve {
  background: var(--greenleaf);
  color: #fff;
  border: none;
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.15s;
}

.btn-approve:hover {
  opacity: 0.85;
}

.btn-edit {
  background: var(--skyblue);
  color: #fff;
  border: none;
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.15s;
}

.btn-edit:hover {
  opacity: 0.85;
}

.btn-approve:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-reject {
  background: var(--pumpkin);
  color: #fff;
  border: none;
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.15s;
}

.btn-reject:hover {
  opacity: 0.85;
}

.btn-reject:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-view {
  background: none;
  border: 1px solid var(--accent4);
  color: var(--stfxblue);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.78rem;
  cursor: pointer;
}

.btn-view:hover {
  background: var(--accent5);
}

.btn-export {
  background: var(--marigold);
  color: var(--stfxblue);
  border: none;
  padding: 0.55rem 1.2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-export:hover {
  background: var(--marigold);
}

.btn-export:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ─── Admin tabs ─────────────────────────────────────────────────────────────── */
.admin-tabs {
  display: flex;
  border-bottom: 3px solid var(--accent4);
  background: var(--accent5);
}

.admin-tab {
  background: none;
  border: none;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--stfxblue);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-tab:hover {
  color: var(--stfxblue);
}

.admin-tab.active {
  color: var(--stfxblue);
  font-weight: bold;
  border-bottom: 5px solid var(--marigold);
}

.admin-tab .count-badge {
  font-size: 0.72rem;
}

/* ─── Edit row / form ────────────────────────────────────────────────────────── */
.admin-table tr.edit-row td {
  background: #FFFBF0;
  padding: 0;
  border-top: 2px solid var(--marigold);
}

.edit-form {
  padding: 0.9rem 1rem;
}

.edit-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.edit-form-fields .form-group:last-child {
  grid-column: 1 / -1;
}

.edit-form-actions {
  margin-top: 0.5rem;
}

.edit-form-retro {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

.edit-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--stfxblue);
  margin-bottom: 0.2rem;
  display: block;
}

.admin-export-dbs {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 0.75rem;
}

.btn-export-db {
  background: var(--stfxblue);
  border: 1px solid rgba(200, 168, 75, 0.5);
  color: var(--marigold);
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-export-db:hover {
  background: rgba(200, 168, 75, 0.15);
  color: var(--stfxblue);
  border: 1px solid var(--skyblue);
}

/* ─── Export dropdown ────────────────────────────────────────────────────────── */
.export-dropdown {
  position: relative;
}

.export-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  min-width: 210px;
  z-index: 500;
  padding: 0.3rem 0;
}

.export-dropdown-menu.open {
  display: block;
}

.export-dropdown-section {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  padding: 0.55rem 0.9rem 0.2rem;
}

.export-dropdown-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.3rem 0;
}

.export-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  color: var(--stfxblue);
  cursor: pointer;
  transition: background 0.12s;
}

.export-dropdown-item:hover {
  background: var(--accent5);
}

.btn-logout {
  background: var(--pumpkin);
  border: 0px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-weight: bold;
  padding: 0.4rem 0.9rem;
  border-radius: 3px;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-logout:hover {
  border-color: #fff;
  color: #fff;
}

.btn-refresh {
  background: var(--skyblue);
  color: var(--white);
  border: none;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-refresh:hover {
  opacity: 0.85;
}

.count-badge {
  background: var(--marigold);
  color: var(--stfxblue);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
}

/* ─── Links row ──────────────────────────────────────────────────────────────── */
.links-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.75rem;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links {
    display: none;
    flex-direction: column;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--stfxblue);
    padding: 0.5rem 1rem 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  #header h1 {
    font-size: 1.75rem;
  }

  .admin-panels {
    flex-direction: column;
  }

  .accommodation-details dl {
    grid-template-columns: 1fr;
  }

  .accommodation-details dt {
    margin-top: 0.4rem;
  }
}

@media (max-width: 480px) {
  .modal-panel {
    padding: 1.5rem;
  }

  section {
    padding: 2.5rem 0;
  }
}

/* ─── Print ──────────────────────────────────────────────────────────────────── */
@media print {

  nav,
  .modal,
  #registration,
  .btn-primary,
  .btn-secondary {
    display: none !important;
  }

  body {
    padding-top: 0;
    font-size: 11pt;
  }

  section {
    padding: 1rem 0;
    background: none !important;
  }

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

/* ─── Schedule (public site) ─────────────────────────────────────────────────── */
.schedule-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.schedule-table th:nth-child(1),
.schedule-table td:nth-child(1) {
  width: 9.5rem;
}

/* cols 2 (Speaker) and 3 (Talk) share remaining space equally */

.schedule-table th:nth-child(4),
.schedule-table td:nth-child(4) {
  width: 4.2rem;
  padding-left: 0.25rem;
  padding-right: 0.1rem;
}

.schedule-table th:nth-child(5),
.schedule-table td:nth-child(5) {
  width: 3.8rem;
  padding-left: 0.1rem;
  padding-right: 0.25rem;
}

.schedule-table th {
  background: var(--stfxblue);
  color: var(--white);
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
}

.schedule-table td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--marigold);
  vertical-align: top;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-table td:first-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-size: 0.88rem;
}

.schedule-btn-cell {
  text-align: center;
  vertical-align: middle;
}

.btn-abstract-view,
.btn-slides-view {
  display: block;
  margin: 0 auto;
  padding: 0.2rem 0.5rem;
  line-height: 1.4;
  font-size: 0.75rem;
  font-family: inherit;
  color: var(--stfxblue);
  background: transparent;
  border: 1px solid var(--stfxblue);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}

.btn-abstract-view:hover,
.btn-slides-view:hover {
  opacity: 1;
  background: var(--stfxblue);
  color: #fff;
}

.block-break td,
.block-meal td,
.block-social td,
.block-other td {
  background: var(--accent4);
  color: var(--text);
  font-weight: bold;
}

.block-tutorial td:first-child {
  color: var(--text);
}

/* ─── Status badges (admin) ──────────────────────────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.published {
  background: var(--greenleaf);
  color: var(--stfxblue);
}

.status-badge.unpublished {
  background: var(--accent4);
  color: var(--accent2);
}

/* ─── Publish bar (admin panels) ─────────────────────────────────────────────── */
.publish-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--accent5);
  border-bottom: 1px solid var(--accent4);
  font-size: 0.88rem;
}

.publish-bar .publish-bar-msg {
  flex: 1;
  color: var(--accent2);
}

.publish-bar .publish-bar-msg.is-published {
  color: #2a6b2a;
  font-weight: 600;
}

/* ─── Small buttons ──────────────────────────────────────────────────────────── */
.btn-sm {
  background: none;
  border: 1px solid var(--accent4);
  color: var(--stfxblue);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.12s;
}

.btn-sm:hover {
  background: var(--accent5);
}

.btn-edit-day {
  background: var(--stfxblue);
  color: var(--white);
  border: 2px solid var(--marigold);
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-edit-day:hover {
  opacity: 0.85;
}

.btn-delete-day {
  background: var(--pumpkin);
  color: var(--white);
  border: 2px solid var(--marigold);
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-delete-day:hover {
  opacity: 0.85;
}

.btn-primary-sm {
  background: var(--stfxblue);
  color: #fff;
  border: none;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-primary-sm:hover {
  opacity: 0.85;
}

.btn-danger-sm {
  background: var(--pumpkin);
  color: #fff;
  border: none;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-danger-sm:hover {
  opacity: 0.85;
}

.btn-success-sm {
  background: var(--greenleaf);
  color: var(--stfxblue);
  border: none;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-success-sm:hover {
  opacity: 0.85;
}

/* ─── Schedule admin: day cards ──────────────────────────────────────────────── */
.schedule-days {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem;
}

.day-card {
  border: 1px solid var(--accent4);
  border-radius: 5px;
  overflow: hidden;
}

.day-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: #1a3a5c;
  color: #fff;
  gap: 0.5rem;
}

.day-card-header h4 {
  color: var(--marigold);
  margin: 0;
  font-size: 0.95rem;
}

.day-card-header .day-card-actions {
  display: flex;
  gap: 0.3rem;
}

.day-blocks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.day-blocks-table th {
  background: var(--accent5);
  color: var(--accent2);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--accent4);
}

.day-blocks-table td {
  padding: 0.4rem 0.65rem;
  border-bottom: 1px solid var(--accent4);
  vertical-align: middle;
}

.day-blocks-table tr:last-child td {
  border-bottom: none;
}

.day-blocks-table .block-actions {
  display: flex;
  gap: 0.2rem;
  flex-wrap: nowrap;
  align-items: center;
}

.sched-spacer-row td {
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
  background: repeating-linear-gradient(135deg,
      transparent,
      transparent 4px,
      rgba(128, 128, 128, 0.06) 4px,
      rgba(128, 128, 128, 0.06) 8px);
}

.day-card-footer {
  padding: 0.45rem 0.75rem;
  background: var(--accent5);
  border-top: 1px solid var(--accent4);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.btn-spacer-sm {
  background: var(--skylight);
  color: var(--white);
  border: 0px dashed var(--accent3);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.btn-spacer-sm:hover {
  color: var(--stfxblue);
  border-color: var(--stfxblue);
}

.drag-handle {
  cursor: grab;
  color: var(--accent3);
  font-size: 1.1rem;
  padding: 0 0.3rem !important;
  user-select: none;
  width: 1.5rem;
  text-align: center;
}

.drag-handle:active {
  cursor: grabbing;
}

.sched-dragging {
  opacity: 0.35;
}

.sched-drag-over td {
  border-top: 2px solid var(--marigold) !important;
}

.sched-drag-after td {
  border-bottom: 2px solid var(--marigold) !important;
}

.sched-drag-end {
  outline: 2px dashed var(--marigold);
  outline-offset: -2px;
}

/* ─── Program admin: page list ───────────────────────────────────────────────── */
.program-page-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 1rem;
}

.program-page-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--accent4);
}

.program-page-item:last-child {
  border-bottom: none;
}

.program-page-item .page-label {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--stfxblue);
}

.program-page-item .page-auto-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--skyblue);
  background: rgba(66, 95, 142, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

.program-page-item .page-actions {
  display: flex;
  gap: 0.25rem;
}

.prog-drag-handle {
  cursor: grab;
  color: var(--accent3);
  font-size: 1.1rem;
  user-select: none;
  padding: 0 0.2rem;
}

.prog-drag-handle:active {
  cursor: grabbing;
}

.prog-dragging {
  opacity: 0.35;
}

.prog-drag-over {
  border-top: 2px solid var(--marigold) !important;
}

.prog-drag-after {
  border-bottom: 2px solid var(--marigold) !important;
}

.program-generate-bar {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--accent4);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ─── Conference settings panel ──────────────────────────────────────────────── */
.conf-settings-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.conf-settings-wrap h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  border: none;
  padding: 0;
  display: block;
}

.conf-settings-sub {
  color: var(--accent2);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.conf-settings-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--accent4);
}

.conf-settings-section:last-of-type {
  border-bottom: none;
}

.conf-settings-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--skyblue);
  margin-bottom: 1rem;
}

.conf-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.conf-organizer-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.conf-organizer-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.conf-settings-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 2px solid var(--accent4);
  margin-top: 1rem;
}

.conf-settings-dirty-msg {
  font-size: 0.82rem;
  color: var(--pumpkin);
  margin-left: auto;
}

.conf-outside-range-warning {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #FFF3CD;
  color: #856404;
  border: 1px solid #FFEEBA;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ─── Log output ─────────────────────────────────────────────────────────────── */
.log-output {
  background: #1a1a2e;
  color: #c8ffb4;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  padding: 0.75rem 1rem;
  margin: 0.5rem 1rem;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ─── Admin modal (generic) ──────────────────────────────────────────────────── */
#admin-modal .modal-panel {
  width: min(640px, 95vw);
  max-height: 85vh;
  overflow-y: auto;
}

#admin-modal textarea {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  min-height: 260px;
  resize: vertical;
}

/* ─── School logo upload ──────────────────────────────────────────────────────── */
.logo-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.logo-none-msg {
  font-size: 0.88rem;
  color: var(--accent2);
  padding: 0.5rem 0;
}

.logo-preview-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem;
  background: var(--accent5);
  border: 1px solid var(--accent4);
  border-radius: 6px;
  max-width: 100%;
}

.logo-preview-img {
  max-height: 100px;
  max-width: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 3px;
}

.logo-preview-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.logo-filename {
  font-size: 0.82rem;
  color: var(--accent1);
  font-family: "Courier New", Courier, monospace;
  word-break: break-all;
}

.logo-upload-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.logo-chosen-name {
  font-size: 0.82rem;
  color: var(--accent2);
  font-style: italic;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Sponsors ────────────────────────────────────────────────────────────────── */
.sponsor-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.sponsor-empty {
  padding: 0.5rem 0;
}

.sponsor-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  background: var(--accent5);
  border: 1px solid var(--accent4);
  border-radius: 6px;
}

.sponsor-logo-cell {
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-logo-thumb {
  max-width: 72px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 3px;
}

.sponsor-no-logo {
  width: 72px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent4);
  border: 1px dashed var(--accent3);
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--accent2);
  text-align: center;
  line-height: 1.3;
  padding: 0.2rem;
}

.sponsor-name-cell {
  grid-row: 1;
  min-width: 0;
}

.sponsor-name-display-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sponsor-name-display {
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-word;
}

.sponsor-desc-display {
  font-size: 0.82rem;
  color: var(--accent2);
}

.sponsor-actions {
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
}

.sponsor-row-result {
  grid-column: 1 / -1;
}

.sponsor-add-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}