:root {
  --navy: #2c5a8c;
  --navy-dark: #234a73;
  --red: #b94a48;
  --red-dark: #9a3d3b;
  --cream: #f5f3ee;
  --ink: #1f2a36;
  --muted: #5b6570;
}

html {
  font-size: 16px;
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  margin-bottom: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Segoe UI", Calibri, system-ui, sans-serif;
}

.navbar {
  background: var(--navy);
  padding: 0.85rem 0;
}

.navbar-brand {
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.navbar-brand span {
  color: #e8cfcf;
}

.navbar .nav-link {
  color: #eef3f8 !important;
  font-weight: 500;
}

.navbar .nav-link:hover {
  color: #fff !important;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.page-wrap {
  max-width: 860px;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.page-wrap-wide {
  max-width: 1180px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero h1,
.prose h1,
.login-card h1,
.admin-panel h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.admin-panel h1 {
  font-size: 2rem;
  margin-bottom: 0;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 2rem 0;
  background: var(--navy-dark);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(44, 90, 140, 0.18);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.copy-block {
  font-size: 1.12rem;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.form-card,
.admin-panel {
  background: #fff;
  border: 1px solid #ddd6c8;
  border-radius: 8px;
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: 0 8px 24px rgba(31, 42, 54, 0.06);
}

.form-card h2,
.form-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
}

.form-block {
  border: 0;
  margin: 0 0 1.5rem;
  padding: 0;
}

.form-block legend {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  float: none;
  width: auto;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.form-control {
  min-height: 2.6rem;
}

.form-intro {
  color: var(--muted);
}

.disclosure {
  background: #f3eee6;
  border-left: 4px solid var(--red);
  padding: 1rem 1.1rem;
  margin: 1.25rem 0 1.5rem;
}

.disclosure ul {
  margin: 0.5rem 0 0.75rem 1.1rem;
}

.fine {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
}

.signature-wrap {
  background: #f7f5f1;
  border: 1px dashed #c5bbae;
  border-radius: 6px;
  padding: 0.75rem;
}

#signature-pad {
  display: block;
  width: 100%;
  height: 180px;
  background: #fff;
  border: 1px solid #d8d0c4;
  border-radius: 4px;
  touch-action: none;
  cursor: crosshair;
}

.affirmation-text {
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
}

.btn-primary {
  background: var(--navy);
  border-color: var(--navy);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
}

.submit-btn {
  margin-top: 0.5rem;
  background: var(--red);
  border-color: var(--red);
}

.submit-btn:hover,
.submit-btn:focus {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.prose {
  background: #fff;
  border: 1px solid #ddd6c8;
  border-radius: 8px;
  padding: 2rem 1.6rem;
}

.prose p,
.prose li {
  line-height: 1.65;
}

.prose h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  font-size: 1.35rem;
  margin-top: 1.75rem;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-pagesize label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-pagesize .form-select {
  width: auto;
  min-width: 4.5rem;
}

.sort-link {
  color: #fff !important;
  text-decoration: none;
}

.sort-link:hover {
  color: #e8cfcf !important;
  text-decoration: underline;
}

.admin-pager {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.admin-status {
  margin: 0.75rem 0 0;
  color: var(--navy);
  font-weight: 600;
}

.registrar-missing {
  color: var(--red);
  font-weight: 600;
}

.registrar-address {
  white-space: pre-line;
  max-width: 18rem;
  display: inline-block;
  line-height: 1.35;
}

.admin-table-wrap {
  margin-top: 1.25rem;
}

.admin-table {
  margin-bottom: 0;
}

.admin-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  border: none;
  white-space: nowrap;
}

.admin-table tbody td {
  vertical-align: middle;
}

.admin-table a {
  color: var(--navy);
}

.admin-table a.btn,
.admin-table a.btn-primary,
.admin-table a.view-pdf {
  color: #fff !important;
}

.admin-table a.btn-primary:hover,
.admin-table a.view-pdf:hover {
  color: #fff !important;
}

.donate-line {
  display: block;
  margin-top: 0.45rem;
}

.address-suggest {
  position: relative;
}

.address-suggestions {
  position: absolute;
  z-index: 20;
  left: 0.75rem;
  right: 0.75rem;
  top: calc(100% - 0.35rem);
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #cfc6b6;
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(31, 42, 54, 0.12);
  max-height: 14rem;
  overflow-y: auto;
}

.address-suggestions li {
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

.address-suggestions li:hover,
.address-suggestions li:focus {
  background: #eef3f8;
}

.email-error {
  display: block;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 500;
}

.empty-row {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem !important;
}

.login-card {
  max-width: 28rem;
  margin: 0 auto;
}

footer {
  background: var(--navy-dark);
  color: #d7dee6;
  padding: 1.75rem 0;
  font-size: 0.9rem;
  text-align: center;
}

.paid-for-box {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  margin: 1.25rem auto 0;
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.paid-for-box a {
  color: #fff;
  word-break: break-all;
  text-decoration: underline;
}

.paid-for-box a:hover {
  color: #d7dee6;
}

footer a {
  color: #d9a3a2;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

footer p {
  margin-bottom: 0.35rem;
  text-align: center;
}

.feature-image-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 0.2rem rgba(44, 90, 140, 0.2);
}

.text-danger {
  color: var(--red) !important;
}
