/* ASP.NET Web Forms adaptations — do not replace the compiled DSS design system. */

html,
body {
  margin: 0;
  padding: 0;
}

.aspNetHidden {
  display: none;
}

/* Server controls inherit glass inputs when CssClass is set; this covers unclassed leftovers. */
input[type="text"].glass-input,
input[type="email"].glass-input,
input[type="password"].glass-input,
input[type="tel"].glass-input,
input[type="number"].glass-input,
input[type="file"].glass-input,
select.glass-input,
textarea.glass-textarea {
  display: block;
}

select.glass-input {
  color: rgb(var(--text-primary)) !important;
  background-color: var(--card-bg) !important;
}

select.glass-input option {
  background-color: #ffffff;
  color: #0f172a;
}

.dark select.glass-input option {
  background-color: #0c1c24;
  color: #ffffff;
}

/* Dam Safety Act Country Switch Pills */
.dss-country-pill-active {
  background: #008080 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 128, 128, 0.45) !important;
  border: 1.5px solid #00a8a8 !important;
  transform: scale(1.04);
}

.dark .dss-country-pill-active {
  background: #0d9488 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.4) !important;
  border: 1.5px solid #2dd4bf !important;
}

.dss-country-pill-inactive {
  background: rgba(0, 0, 0, 0.05);
  color: #1e293b;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.dss-country-pill-inactive:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

.dark .dss-country-pill-inactive {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dark .dss-country-pill-inactive:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.dss-file-input {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.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;
}

.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.dss-toast-host {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 22rem;
}

.dss-toast {
  background: #121212;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  padding: 0.85rem 1rem;
  animation: dssToastIn 0.25s ease;
}

.dss-toast--error {
  border-left: 3px solid #ef4444;
}

.dss-toast--success {
  border-left: 3px solid #22c55e;
}

.dss-toast--info {
  border-left: 3px solid #38bdf8;
}

@keyframes dssToastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Active nav states — same accent pill the React Navbar applies to an active NavLink.
   Colours need !important because the utility text classes on these links are !important. */
.dss-nav-link.is-active,
.dss-drop>button.is-active {
  color: rgb(var(--color-accent)) !important;
  font-weight: 600;
  background-color: rgb(var(--color-accent) / 0.12);
  border: 1px solid rgb(var(--color-accent) / 0.2);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

html.dark .dss-nav-link.is-active,
html.dark .dss-drop>button.is-active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.dss-dropdown a.is-active,
#dss-mobile-nav a.is-active,
#dss-mobile-nav .dss-acc-btn.is-active {
  color: rgb(var(--text-primary)) !important;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.1);
}

html.light .dss-dropdown a.is-active,
html.light #dss-mobile-nav a.is-active,
html.light #dss-mobile-nav .dss-acc-btn.is-active {
  background-color: rgb(var(--color-accent) / 0.1);
}

.dss-dropdown {
  display: none;
}

.dss-dropdown.is-open {
  display: block;
}

.mobile-drawer {
  display: none;
}

.mobile-drawer.is-open {
  display: block;
}

body.dss-nav-open {
  overflow: hidden;
}

.hero-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.hero-slide.is-active {
  display: block;
  opacity: 1;
  animation: dssHeroFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dssHeroFade {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-slide {
  display: none;
  opacity: 0;
}

.event-slide.is-active {
  display: block;
  opacity: 1;
  animation: dssEventSlideFadeIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dssEventSlideFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dss-radio-group {
  display: block;
}

.dss-radio-group input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  border: 1px solid var(--btn-border);
  margin: 0 14px 0 0;
  vertical-align: middle;
  flex-shrink: 0;
  transition: all 0.15s ease;
  position: relative;
}

.dss-radio-group input[type="radio"]:checked {
  border-color: rgb(var(--color-accent));
  background: rgba(10, 122, 134, 0.12);
  box-shadow: inset 0 0 0 4px rgb(var(--color-accent));
}

.dss-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  margin: 0 0 14px 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-muted);
}

.dss-radio-group input[type="radio"]:checked+label {
  color: var(--text-primary);
}

.dss-upload-zone {
  border: 2px dashed var(--card-border);
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.75rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dss-upload-zone:hover {
  background: var(--card-hover);
  border-color: var(--text-muted);
}

.payment-info-row {
  border-bottom: 1px solid var(--card-border);
  padding: 14px 0;
}

.admin-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--admin-input-border);
  background: var(--admin-input-bg);
  color: rgb(var(--text-primary));
  font-size: 0.875rem;
  outline: none;
}

.admin-input:focus {
  border-color: rgb(var(--text-link));
  box-shadow: 0 0 0 3px rgb(var(--color-accent) / 0.18);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}

.admin-table th {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(var(--text-muted));
}

.icon-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.5rem;
  z-index: 50;
  min-width: 220px;
}

.dss-subdrop {
  position: relative;
}

.dss-subdropdown {
  position: absolute;
  top: -8px;
  left: 100%;
  padding-left: 8px;
  min-width: 220px;
  z-index: 100;
  display: none;
  pointer-events: auto;
}

/* Hover bridge to prevent losing hover when mouse moves from link to flyout menu */
.dss-subdropdown::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -12px;
  width: 20px;
  background: transparent;
}

.dss-subdrop:hover>.dss-subdropdown,
.dss-subdrop:focus-within>.dss-subdropdown,
.dss-subdrop.is-open>.dss-subdropdown,
.dss-subdropdown.is-open {
  display: block;
}

.dss-subdropdown>div {
  animation: dssSubMenuFadeIn 150ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dssSubMenuFadeIn {
  from {
    opacity: 0;
    transform: translateX(-4px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.scale-107:hover {
  transform: scale(1.07);
}

@keyframes pulse {
  50% {
    opacity: .5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Teal utilities used by the Knowledge Hub and Industrial Corner pages
   (absent from the generated dss.css) */
.text-teal-300 {
  color: #5eead4;
}

.text-teal-400 {
  color: #2dd4bf;
}

.bg-teal-500\/15 {
  background-color: rgba(20, 184, 166, 0.15);
}

.bg-teal-500\/20 {
  background-color: rgba(20, 184, 166, 0.20);
}

.hover\:bg-teal-500\/25:hover {
  background-color: rgba(20, 184, 166, 0.25);
}

.hover\:bg-teal-500\/30:hover {
  background-color: rgba(20, 184, 166, 0.30);
}

.hover\:text-teal-300:hover {
  color: #5eead4;
}

.border-teal-500\/30 {
  border-color: rgba(20, 184, 166, 0.30);
}

.border-teal-400\/30 {
  border-color: rgba(45, 212, 191, 0.30);
}

.focus\:border-teal-400\/50:focus {
  border-color: rgba(45, 212, 191, 0.50);
}

/* Small sizes / spacing used by the Industrial Corner directory and profile */
.text-\[11px\] {
  font-size: 11px;
}

.text-\[12px\] {
  font-size: 12px;
}

.text-\[13px\] {
  font-size: 13px;
}

.space-y-2\.5>*+* {
  margin-top: 0.625rem;
}

.w-72 {
  width: 18rem;
}

.bg-white\/8 {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Contact page map — React inverts the embed in dark mode so the tiles stay readable */
html.dark .contact-map iframe {
  filter: invert(90%) hue-rotate(180deg);
}

@media (min-width: 640px) {
  .sm\:w-72 {
    width: 18rem;
  }
}

@media (min-width: 1024px) {
  .lg\:sticky {
    position: sticky;
  }

  .lg\:top-28 {
    top: 7rem;
  }

  .lg\:self-start {
    align-self: flex-start;
  }

  .industry-profile-aside {
    width: 320px;
    flex: 0 0 320px;
  }
}

/* Reusable FAQ accordion ([data-faq-accordion]) */
.faq-body {
  display: none;
}

.faq-item.is-open .faq-body {
  display: block;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.25s ease;
}

/* Rules & Regulations accordion */
.rules-accordion-body {
  display: none;
}

.rules-accordion-item.is-open .rules-accordion-body {
  display: block;
}

.rules-accordion-item.is-open .rules-chevron {
  transform: rotate(180deg);
}

.rules-accordion-item.rules-hidden {
  display: none;
}

.rules-chevron {
  transition: transform 0.25s ease;
}

mark.rules-highlight {
  background: rgba(183, 204, 214, 0.35);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}

/* Unicode-free icons (CSS masks). Avoids letter-glyphs that break as mojibake. */
.icon-svg {
  display: inline-block;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  vertical-align: middle;
}

.icon-chevron-right {
  width: 14px;
  height: 14px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
}

.icon-chevron-left {
  width: 16px;
  height: 16px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
}

.icon-chevron-down {
  width: 14px;
  height: 14px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.icon-arrow-right {
  width: 15px;
  height: 15px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
}

.icon-check {
  width: 11px;
  height: 11px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.icon-sm {
  width: 11px !important;
  height: 11px !important;
}

.faq-chevron.icon-svg {
  width: 18px;
  height: 18px;
}

.dss-subdrop a svg {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
}

.dss-subdropdown>div.shadow-2xl {
  background: rgba(255, 255, 255, 0.95);
}

html.dark .dss-subdropdown>div.shadow-2xl {
  background: rgba(0, 0, 0, 0.9) !important;
}

html.light .blog-card-article-label {
    color: #0e7490 !important;
}

/* Author & Published: ICON ONLY */
html.light .blog-card-meta-icon {
    color: #0e7490 !important;
}

/* Dark mode remains unchanged */
html.dark .blog-card-article-label {
    color: #5eead4 !important;
}

html.dark .blog-card-meta-icon {
    color: #2dd4bf !important;
}

html.dark a[aria-label="LinkedIn"] svg,
html.dark a[aria-label="Twitter"] svg,
html.dark a[aria-label="YouTube"] svg {
    color: #2dd4bf !important;
}