/* [benesch_ai_search] */
:root {
  --color-text: #002957;
  --color-orange: #E0641F;
  --color-white: #FFFFFF;
  --color-offblack: #111111;
  --color-soft-teal-blue: #6dbfcc;
  --color-dark-teal: #24616B;
}

#content:has(.bai-wrap) {
  padding: 0;
}

.pagewidth:has(.bai-wrap) {
  width: 100%;
  max-width: 100%;
}

.ai-search-banner-section {
  background-image: url(/wp-content/uploads/2026/10/ai.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 48% 65%;
  background-attachment: scroll;
  padding-bottom: 350px;
}

.fl-module:has(.bai-wrap)>p {
  display: none;
}

.fl-col-content.fl-node-content:has(.bai-wrap) {
  background-image: none;
}

.bai-wrap {
  --navy: #1b2a4a;
  --navy-soft: #31456e;
  --paper: #fafaf8;
  --ink: #2e3440;
  --ink-soft: #5a6472;
  --line: #e3e1da;
  --gold: #b08d3e;
  --link: #1d4e89;
  --card: #ffffff;
  --hr-bg: #f4efe4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  margin-inline: auto;
  /* width: 1160px;
  max-width: 100%; */
}

.bai-wrap a {
  outline: none;
  /* color: var(--color-text); */
  text-decoration: none;
  color: var(--color-orange);
}

.bai-wrap a:hover {
  /* color: var(--color-orange); */
  text-decoration: underline;
  color: var(--color-dark-teal);
  background: url(https://2027.mybeneschbenefits.com/wp-content/uploads/2026/09/guide-background-2.webp) no-repeat center;
}

.bai-ai-card ul li a:hover {
  background: none;
}

.bai-intro {
  max-width: 800px;
  text-align: center;
  margin-inline: auto;
  margin-bottom: 1.1rem;
}

.bai-intro p {
  color: var(--color-text);
  font-weight: 600;
  font-size: 1.2em;
  line-height: 1.7em;
}

.bai-search-wrap {
  position: relative;
  margin-bottom: 20px;
}

.bai-search-bar {
  display: flex;
  gap: .5rem;
  background: var(--color-white);
  border: 2px solid var(--navy-soft);
  border-radius: 100px;
  padding: .35rem .35rem .35rem 1rem;
  align-items: center;
  box-shadow: 0 1px 3px rgba(27, 42, 74, .08);
}

.bai-search-bar svg {
  flex: 0 0 auto;
  margin-top: -2px;
}

.bai-search-bar input {
  flex: 1;
  margin: 0;
  border: none;
  min-width: 0;
  outline: none;
  font-weight: 500;
  padding: 0 0 0 5px;
  font-size: 1.05rem;
  background: transparent;
  color: var(--color-text);
}

.bai-search-bar input:focus {
  border: none;
}

.bai-search-bar button {
  border: none;
  cursor: pointer;
  padding: 10px 30px;
  border-radius: 100px;
  color: var(--color-white);
  background: linear-gradient(to right, #e0641f, #642b7e);
  transition: background-color .3s linear;
}

.bai-search-bar button:hover {
  /* background: var(--navy-soft); */
  background: linear-gradient(to right, #642b7e, #e0641f);
}

.bai-chips {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.bai-chips .bai-btn {
  padding: 2px;
  border-radius: 100px;
  background: linear-gradient(to right, #e0641f, #642b7e);
}

.bai-chips button {
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 130%;
  letter-spacing: 0;
  position: relative;
  border-radius: 100px;
  color: var(--color-text);
  padding: 10px 30px 10px 20px;
  background: var(--color-white);
  transition: background-color .3s linear;
}

.bai-chips button:hover {
  color: var(--color-white);
  border-color: var(--color-text);
  background: linear-gradient(to right, #e0641f, #642b7e);
}

.bai-chips .bai-btn button::after {
  content: "";
  right: 10px;
  width: 12px;
  height: 12px;
  position: absolute;
  top: calc(50% + 1px);
  display: inline-block;
  transform: translateY(-50%);
  background-image: url('https://2027.mybeneschbenefits.com/wp-content/uploads/2026/09/for-your-body-triangle.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.bai-chips button:hover:after {
  filter: brightness(0) invert(1);
}

.bai-loading {
  display: none;
  gap: 8px;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.bai-loading.on {
  display: flex;
}

.bai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-orange);
  animation: bai-pulse 1s infinite alternate;
}

.bai-dot:nth-child(2) {
  animation-delay: .2s
}

.bai-dot:nth-child(3) {
  animation-delay: .4s
}

@keyframes bai-pulse {
  from {
    opacity: .25
  }

  to {
    opacity: 1
  }
}

.bai-answer {
  display: none;
}

.bai-answer.on {
  display: block;
  margin-top: 30px;
  animation: bai-rise .25s ease-out;
}

/* Admin-configurable (benesch_ai_search_settings[scrollable_results]) -- one
   fixed height and one scrollbar for the entire results area (the AI card
   and the related-pages list together), applied here rather than to each
   piece separately so there's only ever one scrollbar, not two stacked ones. */
.bai-answer.bai-scrollable {
  max-height: 650px;
  overflow-y: auto;
}

@keyframes bai-rise {
  from {
    opacity: 0;
    transform: translateY(6px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.bai-ai-card,
.bai-hr-card {
  border: 1px solid var(--color-soft-teal-blue);
  border-top: 4px solid #398895;
  padding: 25px 30px 30px;
  margin-bottom: 30px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-dark-teal);
  background-color: #eaf5f9;
  background-image: url(https://2027.mybeneschbenefits.com/wp-content/uploads/2026/09/guide-background-2.webp);
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: scroll;
  background-size: cover;
}

.bai-ai-card p {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0;
}

.bai-ai-card .bai-no-match-body p + p {
  margin-top: 8px;
}

.bai-ai-card .bai-no-match-body a {
  color: inherit;
  text-decoration: underline;
}

.bai-tag {
  display: inline-flex;
  /* align-items: center; */
  gap: 10px;
  font-size: 18px;
  color: var(--color-dark-teal);
  margin-bottom: 20px;
  font-weight: 600;
}

.bai-ai-card h2 {
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 .6rem;
  color: var(--color-dark-teal);
}

.bai-ai-card ul {
  margin: 15px 0 0;
}

.bai-ai-card li {
  margin-bottom: .25rem;
}

.bai-sources {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-text);
}

.bai-sources p {
  font-size: 16px;
  margin: 0 0 10px;
  font-weight: 500;
}

.bai-src-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.bai-src-links a,
.bai-wrap .bai-hr-link-btn {
  outline: none;
  font-weight: 500;
  position: relative;
  padding-right: 15px;
  /* color: var(--color-text); */
  text-decoration: underline;
  color: var(--color-orange);
}

.bai-src-links a::after,
.bai-wrap .bai-hr-link-btn::after {
  content: '\2192\00A0';
  position: absolute;
  right: -10px;
}

.bai-src-links a:hover,
.bai-wrap .bai-hr-link-btn:hover {
  /* color: var(--color-orange); */
  color: var(--color-dark-teal);
  background: none;
}

.bai-src-links a:hover::after,
.bai-wrap .bai-hr-link-btn:hover::after {
  transform: translateX(3px);
  transition: opacity .15s ease, transform .15s ease;
}

.bai-disclaimer {
  font-size: 14px;
  margin-top: 20px;
}

/* .bai-hr-card{background:var(--hr-bg);border:1px solid #e0d4b4;border-radius:8px;padding:1.35rem 1.5rem;margin-bottom:1.75rem;} */
.bai-hr-card h2 {
  font-weight: 600;
  font-size: 20px;
  color: var(--color-text);
  margin: 0 0 10px;
}

.bai-hr-card p {
  margin: 0;
}

/* .bai-results{margin-top: 20px;} */
.bai-results h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  padding-bottom: 10px;
  letter-spacing: .04em;
  color: var(--color-text);
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-text);
}

.bai-results-grid {
  display: flex;
  flex-direction: column;
}

.bai-result-card {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  background: #eaf5f9;
  padding: 20px;
  text-decoration: none !important;
  border: 1px solid var(--color-text);
  border-top: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.bai-result-card:nth-child(even) {
  background: #e1eff0;
}

.bai-result-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: var(--navy-soft);
  display: none;
}

.bai-result-icon.pdf {
  background: #fbf0dd;
  color: var(--gold);
}

.bai-result-body {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 20px;
}

.bai-result-crumb {
  font-size: 15px;
  color: var(--color-text);
  text-transform: uppercase;
  font-weight: 500;
  flex: 1 0 18%;
}

.bai-result-content {
  color: var(--color-text);
}

.bai-result-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.bai-result-excerpt {
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bai-result-arrow {
  flex: 0 0 auto;
  align-self: center;
  color: var(--color-orange);
  opacity: 1;
  transform: translateX(-3px);
  transition: opacity .15s ease, transform .15s ease;
  font-size: 20px;
}

.bai-result-card:hover .bai-result-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* [benesch_chat_hints] */
.bai-wrap .bai-hr-link-btn {
  margin-top: 20px;
  display: inline-block;
}

.bch-wrap {
  max-width: 880px;
  margin: 0 auto 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.bch-wrap p {
  color: #5a6472;
  font-size: .85rem;
  margin: 0 0 .6rem;
}

.bch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.bch-chips button {
  border: 1px solid #e3e1da;
  background: #fff;
  color: #5a6472;
  font-size: .85rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
}

.bch-chips button:hover {
  border-color: #31456e;
  color: #1b2a4a;
}

.bch-chips button.copied {
  border-color: #b08d3e;
  color: #1b2a4a;
}

/* [benesch_ai_search_icon] */
.bai-modal-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e3e1da;
  background: #fff;
  color: #1b2a4a;
  cursor: pointer;
  padding: 0;
}

.bai-modal-trigger:hover {
  background: #fafaf8;
  border-color: #31456e;
}

.bai-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 42, 74, .55);
  z-index: 100000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 1rem;
  overflow-y: auto;
}

.bai-modal-overlay[hidden] {
  display: none;
}

.bai-modal-dialog {
  position: relative;
  background: #fafaf8;
  border-radius: 12px;
  max-width: 940px;
  width: 100%;
  padding: 2.25rem 1.75rem 1.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.bai-modal-close {
  position: absolute;
  top: .6rem;
  right: .75rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #5a6472;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.bai-modal-close:hover {
  background: #e3e1da;
  color: #1b2a4a;
}

@media screen and (max-width: 1280px) {
  .ai-search-banner-section {
    padding-bottom: 250px;
  }
}

@media screen and (max-width: 1260px) {
  .bai-wrap {
    max-width: 94%;
    margin-block: 30px;
  }
}

@media screen and (max-width: 760px) {
  .bai-wrap {
    max-width: 90%;
  }

  .bai-result-body {
    gap: 10px;
    flex-flow: column;
  }

  .bai-result-title {
    margin-bottom: 5px;
  }

  .bai-result-arrow {
    align-self: flex-start;
  }
}

.bai-sources:has(.bai-src-links:empty) p,
.bai-sources:has(.bai-src-links:empty) .bai-src-links {
  display: none;
}

.bai-sources:has(.bai-src-links:empty)~.bai-disclaimer {
  margin-top: 0;
}