/* Tag Input - replaces jquery.tagit.css and tagit.ui-zendesk.css */
.tag-input-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  min-height: 36px;
  cursor: text;
  list-style: none;
  margin: 0;
}

.tag-input-container:focus-within {
  border-color: #4a90d9;
  box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.2);
}

.tag-input-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: #e8f0fe;
  border: 1px solid #c2d9f2;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}

.tag-input-tag .tag-input-remove {
  cursor: pointer;
  color: #888;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  margin-left: 2px;
}

.tag-input-tag .tag-input-remove:hover {
  color: #c00;
}

.tag-input-new {
  flex: 1;
  min-width: 120px;
  position: relative;
  list-style: none;
}

.tag-input-field {
  border: none;
  outline: none;
  width: 100%;
  padding: 4px 0;
  font-size: 14px;
  background: transparent;
}

.tag-input-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  list-style: none;
  margin: 4px 0 0;
  padding: 4px 0;
  max-height: 200px;
  overflow-y: auto;
}

.tag-input-suggestion {
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
}

.tag-input-suggestion:hover,
.tag-input-suggestion.active {
  background: #f0f4ff;
}

/* Modal - replaces reveal.css */
dialog.reveal-modal {
  border: none;
  border-radius: 8px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

dialog.reveal-modal.mlarge {
  max-width: 700px;
}

dialog.reveal-modal.large {
  max-width: 800px;
}

dialog.reveal-modal.medium,
dialog.reveal-modal.xmedium {
  max-width: 550px;
}

dialog.reveal-modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.2s ease;
}

dialog.reveal-modal[open] {
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

dialog.reveal-modal .close-reveal-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

dialog.reveal-modal .close-reveal-modal:hover {
  color: #000;
}

/* Hero background images - replaces stretchy-pants JS */
.hero-bg {
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

.hero-bg[data-hero-anchor="top-center"] {
  background-position: top center;
}

.hero-bg[data-hero-anchor="center-center"] {
  background-position: center center;
}

.hero-bg[data-hero-anchor="bottom-center"] {
  background-position: bottom center;
}

.hero-bg[data-hero-anchor="top-left"] {
  background-position: top left;
}

.hero-bg[data-hero-anchor="top-right"] {
  background-position: top right;
}

/* Hero image containers need to be positioned */
.hero-image,
.hero-inner {
  overflow: hidden;
}

/* Restore the original stacking: hero image sits BEHIND the page copy
   (main.css .hero-image is position:absolute;z-index:1; .hero-copy is
   z-index:10). The blanket position:relative above was pushing the hero
   image below the form on login/signup/password-reset pages. */
.hero-image {
  position: absolute;
  z-index: 1;
}

/* Sticky Footer - replaces jquery.hug-bottom */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-wrap,
.content,
.contentWrap {
  flex: 1;
}

#footerWrap {
  flex-shrink: 0;
}

/* Hero container heights - replaces stretchy-pants JS dynamic sizing */
.content-wrap.top-page-hero {
  min-height: 500px;
  position: relative;
}

.home-hero.hero-image {
  height: 500px;
  position: relative;
  overflow: hidden;
}

.home-hero.hero-image .hero-inner {
  height: 100%;
  position: relative;
}

.home-hero-copy {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

.home-hero-copy > .inner {
  height: 100%;
  position: relative;
}

.home-hero-copy-inner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 0 60px;
  z-index: 3;
}

/* Responsive hero heights */
@media (max-width: 768px) {
  .content-wrap.top-page-hero {
    min-height: 350px;
  }
  .home-hero.hero-image {
    height: 350px;
  }
}

@media (min-width: 1200px) {
  .content-wrap.top-page-hero {
    min-height: 600px;
  }
  .home-hero.hero-image {
    height: 600px;
  }
}
