/* Yeramba Estates Pty Ltd - small additions to Tailwind */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

section[id], main[id] { scroll-margin-top: 5.5rem; }

/* Visible focus for keyboard users */
:focus-visible {
  outline: 3px solid #C89B5A;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Marker for details the company still has to confirm or supply */
.tbc {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px dashed #B07F45;
  background: rgba(200, 155, 90, .14);
  color: #6B4A1F;
  font-family: Inter, system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.4;
  padding: .1rem .55rem;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}
.tbc::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 999px;
  background: #C89B5A;
}
.on-dark .tbc {
  color: #F3DDB8;
  border-color: #C89B5A;
  background: rgba(200, 155, 90, .16);
}

/* Legal dialogs */
dialog.legal { padding: 0; border: 0; }
dialog.legal::backdrop { background: rgba(27, 36, 32, .65); }
dialog.legal h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #1F4D3A;
  margin-top: 1.5rem;
  margin-bottom: .4rem;
}
dialog.legal p, dialog.legal li { line-height: 1.65; }
dialog.legal ul { list-style: disc; padding-left: 1.25rem; }
dialog.legal li + li { margin-top: .3rem; }
dialog.legal a { color: #1F4D3A; text-decoration: underline; text-underline-offset: 2px; }

/* Form field error state */
.field-invalid { border-color: #A3361F !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
