/* Cross-browser: Safari, iOS Chrome, desktop Chrome/Edge/Firefox */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
img, video, iframe { max-width: 100%; }
iframe { display: block; }
input, select, textarea { font-size: 16px; }
.dir-scroll {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
  padding-bottom: 0.5rem;
}
.dir-card ul, .gold-panel ul {
  list-style: disc;
  padding-left: 1.25rem;
}
.break-anywhere { overflow-wrap: anywhere; word-break: break-word; }
.site-dock {
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 1023.98px) {
  .dir-desktop { display: none !important; }
}
@media (min-width: 1024px) {
  .dir-mobile { display: none !important; }
}

/* Deter casual copy of photos, logos, and marketing copy.
   Phone, email, SMS, forms, and the scheduler stay selectable. */
html, body {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
img, svg, picture, video, canvas {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}
a[href^="tel:"],
a[href^="sms:"],
a[href^="mailto:"],
.copy-ok,
input, textarea, select, button,
iframe {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
  pointer-events: auto;
}
::selection { background: transparent; color: inherit; }
a[href^="tel:"]::selection,
a[href^="sms:"]::selection,
a[href^="mailto:"]::selection,
.copy-ok::selection,
input::selection,
textarea::selection {
  background: var(--color-gold-soft, #e8d4a4);
  color: var(--color-forest-deep, #0c3322);
}

.due-diligence {
  background: #C41E3A !important;
  border: 4px solid #8B1024 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.4);
}
.due-diligence .due-line {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  color: #FFE08A;
}

.dir-card,
.gold-panel {
  overflow: visible !important;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.gold-panel {
  padding: 1.25rem 1.25rem 1.75rem !important;
}
.gold-panel p,
.gold-panel li,
.gold-note {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.gold-slot,
.gold-slot td,
.gold-panel {
  background-color: #c9a227 !important;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.08) 16%,
      rgba(255, 255, 255, 0) 38%,
      rgba(90, 55, 0, 0.18) 100%
    ),
    linear-gradient(
      115deg,
      #5c430c 0%,
      #b8860b 7%,
      #e8c547 14%,
      #fff6c2 21%,
      #d4af37 30%,
      #f8e48a 40%,
      #a67c00 50%,
      #ffe9a8 60%,
      #c9a227 70%,
      #fff3b0 80%,
      #8b6914 90%,
      #6b4f0e 100%
    ) !important;
  background-size: 100% 100%, 260% 140%;
  background-position: 0 0, 0% 50%;
  animation: gold-sheen 6.5s linear infinite;
  color: #14210f;
}
tr.gold-slot td {
  border-bottom: 1px solid #c9a227;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.silver-slot,
.silver-slot td {
  background: linear-gradient(180deg, #f4f6f8 0%, #c5ccd3 42%, #9ea8b1 100%) !important;
}
tr.silver-slot td {
  border-bottom: 1px solid #8a939c;
}
.gold-panel {
  border: 2px solid #f6e27a !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -3px 10px rgba(90, 55, 0, 0.22),
    0 0 0 1px #8b6914,
    0 10px 28px rgba(176, 122, 20, 0.5);
}
.dir-card.gold-slot {
  border: 2px solid #f6e27a !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -2px 8px rgba(90, 55, 0, 0.18),
    0 0 0 1px #8b6914,
    0 12px 28px rgba(176, 122, 20, 0.48);
}
.dir-card.silver-slot {
  border: 2px solid #7d868f !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 8px rgba(80, 90, 100, 0.18);
}

@keyframes gold-sheen {
  0% {
    background-position: 0 0, 0% 50%;
  }
  100% {
    background-position: 0 0, 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gold-slot,
  .gold-slot td,
  .gold-panel {
    animation: none;
    background-position: 0 0, 38% 50%;
  }
}
