/* estate.css — self-contained chrome for the two shared mechanisms the
   hand-written bridge sites need: the geo-aware consent banner (consent.js)
   and the contact form (/api/contact).

   Deliberately token-free. These three properties each have their own design
   system (vpnuncovered ships CSS custom properties, psychologyofdating ships a
   different set, signfate ships inline styles and no stylesheet at all), so
   anything referencing --c-surface or --accent would render unstyled on at
   least one of them. Everything here uses `inherit`, `currentColor` and
   colour-mix against currentColor, so it takes on whatever theme it lands in —
   including SignFate's dark navy. */

.consent-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 2147483000;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #1b1b1b;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
}
.consent-banner p { margin: 0; }
.consent-actions { display: flex; gap: 0.6rem; align-items: center; }
.consent-banner .btn,
.consent-banner .btn-small {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  border-radius: 4px;
  padding: 0.45rem 0.95rem;
  background: #1b1b1b;
  color: #ffffff;
  text-decoration: none;
}
.consent-banner .btn-plain {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: #444;
  text-decoration: underline;
}

/* Contact form — theme-agnostic: inherits the page's own colours. */
.contact-form { max-width: 34rem; margin: 1.5rem 0 2rem; }
.contact-form .field { margin-bottom: 1rem; }
.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: inherit;
}
.contact-form .req { font-weight: 400; opacity: 0.7; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.85rem;
  color: inherit;
  background: color-mix(in srgb, currentColor 6%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 6px;
}
.contact-form textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}
.contact-form button[type="submit"] {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0.7rem 1.3rem;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.contact-status { margin: 0.75rem 0 0; font-weight: 700; }
.contact-privacy { margin: 0.75rem 0 0; font-size: 0.85rem; opacity: 0.75; }
.contact-form .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Tables — the estate rule applies to hand-written pages too. Scoped to main
   so a layout table (there are none today, but bridge pages get hand-edited)
   is never caught. */
main table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
main table caption { caption-side: top; text-align: left; font-weight: 700; padding-bottom: 0.4rem; }
main th,
main td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}
main thead th {
  font-weight: 700;
  border-bottom: 2px solid color-mix(in srgb, currentColor 45%, transparent);
  background: color-mix(in srgb, currentColor 7%, transparent);
}
main tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 620px) {
  main table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
