/* Shared look of every page of the application: serif page titles, solid blue primary actions,
   flat bordered cards, quiet tables and fields. Loaded after style.css and ux.css. */
:root {
  --brand: #285e7d;
  --brand-dark: #1d4a63;
  --brand-soft: #e1f1fa;
  --rule: #e4e4e4;
  --quiet: #6b7075;
}

/* Page titles */
.heading h1 {
  margin: 0 0 8px;
  font-family: Lora, Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: #2d2d2d;
}
.heading .eyebrow {
  display: none;
}
.heading p {
  margin: 0;
  color: var(--quiet);
  font-size: 15px;
}

/* Buttons: neutral outline by default, solid blue for the main action of a page or dialog */
.btn {
  min-height: 44px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #fff;
  color: #2d2d2d;
  font-size: 14px;
  font-weight: 600;
}
.btn:not(.primary):hover {
  background: #f7f7f7;
}
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn.primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
/* Invitations belong to the organiser's template: keep their own button colours. */
.invitation .btn.primary {
  border-color: transparent;
  color: #fff;
}

/* Cards */
.card,
.stat,
.event-card,
.modal-box {
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: none;
}
.modal-box {
  box-shadow: 0 18px 48px #2d2d2d33;
}
.card h3,
.card-head h3 {
  font-family: Manrope, sans-serif;
  font-size: 17px;
  font-weight: 700;
}

/* Tables */
th {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--quiet);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
td {
  border-bottom: 1px solid var(--rule);
}
tr:last-child td {
  border-bottom: 0;
}

/* Fields */
.field {
  font-weight: 600;
}
.field input,
.field select,
.field textarea,
.search {
  border-color: #c8d4dc;
  font-weight: 400;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.search:focus-visible {
  outline: 3px solid #285e7d55;
  border-color: var(--brand);
}
.field > small {
  font-weight: 400;
}

/* Text links and pills */
.text-link {
  color: var(--brand);
  font-weight: 600;
}
.pill {
  font-weight: 600;
}

/* Status pills, row actions and avatars in tables */
.status,
.status:not(.off):not(.wait) {
  padding: 4px 12px;
  border-radius: 999px;
  background: #e3f3ec;
  color: #1f7a5a;
  font-size: 12.5px;
  font-weight: 600;
}
.status.wait {
  background: #fdf0d8;
  color: #94570a;
}
.status.off {
  background: #f7e8e6;
  color: #9b4a43;
}
.row-action {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
}
.row-action:hover {
  background: #f7f7f7;
}
.person .avatar {
  border: 1px solid var(--rule);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

/* The guest entry table is narrow: keep its headers compact so they never touch. */
.entry-table th {
  padding-right: 10px;
  font-size: 11px;
  letter-spacing: 0.6px;
  white-space: normal;
}

@media (max-width: 640px) {
  .heading h1 {
    font-size: 28px;
  }
}
