/* Theme-specific overrides on top of generated Tailwind CSS */

html,
body {
  overflow-x: hidden;
}

main {
  display: block;
}

[data-setting-text],
[data-setting-link],
[data-setting-placeholder] {
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* Match React frontend: rounded glass-card and section padding */
.glass-card {
  border-radius: 0.75rem;
}

.section-padding {
  padding-top: 6rem;
  padding-bottom: 6rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 8rem;
    padding-bottom: 8rem;
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
  }
}

/* Mobile: header always has solid background so menu is visible when opened at top of page */
@media (max-width: 767px) {
  #site-header {
    background-color: hsl(var(--background)) !important;
    backdrop-filter: blur(12px);
  }
}

/* Mobile: map centered with equal space on left and right */
@media (max-width: 1023px) {
  #contact .container {
    max-width: 100%;
  }
  .tk-map-container {
    display: flex;
    justify-content: center;
    width: 100%;
    transform: none !important;
  }
  .tk-map-wrapper {
    width: 100%;
    max-width: 100%;
  }
  #contact iframe {
    min-width: 0;
    width: 100%;
    display: block;
  }
}

/* Prevent iframe from expanding layout */
.tk-map-wrapper {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

