/* The [hidden] attribute must beat page CSS. consent.js reveals the "Do Not
   Sell or Share" link by clearing `hidden`, so anything that sets `display` on
   a footer link — and these hand-written pages do, for tap-target height —
   silently un-hides it for every visitor on earth. Caught live on signfate.com
   2026-08-27 (task #309): the California-only link was showing in Australia. */
[hidden] { display: none !important; }

/* 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; }
/* The banner paints its OWN white surface, so every descendant has to be told
   the dark ink explicitly. Setting `color` on the container alone is not
   enough: a page-level bare element rule (`p { color: … }`) beats INHERITANCE
   outright, so the message paragraph took the page's own warm-white body
   colour and rendered at ~1.1:1 on white — a banner you could not read.
   Caught live from a Belgium exit 2026-08-28 (task #898); six of SignFate's
   seven pages carry exactly such a `p`/`p, li` rule. Keep this list ahead of
   any element a future banner string might use. */
.consent-banner,
.consent-banner p,
.consent-banner li,
.consent-banner span,
.consent-banner small,
.consent-banner strong { color: #1b1b1b; }
.consent-banner a { color: #1b1b1b; text-decoration: underline; }
.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;
}
/* Keyboard: the banner is a dialog and both of its controls must show focus.
   The banner paints its own light surface, so the ring is dark on purpose. */
.consent-banner .btn:focus-visible,
.consent-banner .btn-small:focus-visible,
.consent-banner .btn-plain:focus-visible {
  outline: 3px solid #1b1b1b;
  outline-offset: 2px;
}

/* 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);
  min-height: 44px;
}
.contact-form button[type="submit"]:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 2px;
}
.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; }
}
