html {
  --color--blue: #0433B8;
  --color--lilac-blue: #95B2EC;
  --color--navy-blue: #131824;
  --color--grey-light: #F4F4F6;
  --color--grey-mid: #848484;
  --color--grey-dark: #505050;
  --color--black: #000000;
  --color--white: #ffffff;

  --spacing--10: min(1rem, 2vw);
  --spacing--20: min(1.5rem, 3vw);
  --spacing--30: min(2.5rem, 3vw);
  --spacing--40: min(4rem, 5vw);
  --spacing--50: min(6.5rem, 8vw);
  --spacing--60: min(10.5rem, 13vw);  

  --font-size--large: clamp(1.85rem, 1.85rem + ((1vw - 0.2rem) * 0.25), 2rem);
  --font-size--medium: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.25), 1.25rem);
  --font-size--small: clamp(0.9375rem, 0.9375rem + ((1vw - 0.2rem) * 0.25), 1.0625rem);
  --font-size--extra-small: 0.875rem;  
  --navHeight: 72.74px;

  scroll-behavior: smooth;
}

/* background helper classes */

.has-blue-bg {
  background-color: var(--color--blue);
}
.has-lilac-blue-bg {
  background-color: var(--color--lilac-blue);
}
.has-navy-blue-bg {
  background-color: var(--color--navy-blue);
}
.has-grey-light-bg {
  background-color: var(--color--grey-light);
}
.has-grey-mid-bg {
  background-color: var(--color--grey-mid);
}
.has-grey-dark-bg {
  background-color: var(--color--grey-dark);
}
.has-black-bg {
  background-color: var(--color--black);
}
.has-white-bg {
  background-color: var(--color--white);
}

/* typography helper classes */

.has-blue-text {
  color: var(--color--blue);
}
.has-lilac-blue-text {
  color: var(--color--lilac-blue);
}
.has-navy-blue-text {
  color: var(--color--navy-blue);
}
.has-grey-light-text {
  color: var(--color--grey-light);
}
.has-grey-mid-text {
  color: var(--color--grey-mid);
}
.has-grey-dark-text {
  color: var(--color--grey-dark);
}
.has-black-text {
  color: var(--color--black);
}
.has-white-text {
  color: var(--color--white);
}
.has-align-center {
  text-align: center;
}
.has-align-right {
  text-align: right;
}

/* layout helper classes */

.d-block {
  display: block;
}
.d-flex {
  display: flex;
  gap: 2rem;
}
.align-center {
  align-items: center;
}
.align-start {
  align-items: flex-start;
}
.align-end {
  align-items: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-end {
  justify-content: end;
}
.flex-column {
  flex-direction: column;
}
.w-100 {
  width: 100%;
}
.alignwide {
  max-width: 1280px;
}
.alignfull {
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: var(--font-size--small);
  line-height: 1.4;
  color: var(--color--grey-dark);
  margin: 0;
}
:is(h1,h2,h3,h4,h5) {
  font-weight: 600;
  line-height: 1.25;
}

:is(h1,h2,h3,h4,h5,p,ul,ol) {
  margin-block: 0;
  &:not(.alignfull):not(.alignwide) {
    max-width: 510px;
  }
}

h2, .has-font-large {
  font-size: var(--font-size--large);
}
h3, .has-font-medium {
  font-size: var(--font-size--medium);
}
h4, .has-font-small {
  font-size: var(--font-size--small);  
}
h5, .has-font-extra-small {
  font-size: var(--font-size--extra-small);  
}

a {
  color: var(--color--blue);
  text-decoration: none;
}


/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
  &:focus {
    background-color: var(--color--blue);
    clip: auto !important;
    clip-path: none;
    color: var(--color--white);
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Above All other elements. */
  }  
}


/* template parts */

header {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color--lilac-blue);
  padding: 8px;
}

.site-logo {
  display: block;
  line-height: 1;
  max-width: min(18.75rem, 50vw);
  & img {
    max-width: 100%;
    display: block;
    object-fit: contain;
  }
}

.page-search section:has(.site-logo, form) {
  position: relative;
  padding-block: var(--spacing--20) var(--spacing--40);
  gap: var(--spacing--10);
  &::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: calc((100vw - 100%) / 2 * -1);
    width: 100vw;
    height: 8px;
    background: var(--color--lilac-blue);
  }
  @media (max-width: 650px) {
    &::after {
      height: 4px;
    }
  }  
  & .site-logo {
    position: relative;
    & img {
      filter: invert(1);
    }   
  }   
}

main {
  max-width: 747px;
  margin-inline: auto;
  padding-inline: var(--spacing--50);
  @media (max-width: 650px) {
    & {
      padding-inline: 1rem;
    }
  }
}

section {
  margin-block: 0;
  box-sizing: border-box;  
  position: relative;
  &:not([class*="-bg"]) {
    margin-top: var(--spacing--30);
  }
  &[class*="-bg"] {
    padding-block: var(--spacing--50);
    position: relative;
    &:before {
      content: "";
      display: block;
      position: absolute;
      top: 0;
      left: calc((100vw - 100%) / 2 * -1);
      background: inherit;
      width: 100vw;
      height: 100%;
      z-index: -1;
    }
    & img {
      &.cover {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        ~ *:not(.screen-reader-text) {
          z-index: 1;
          position: relative;
        }
      }
      &.alignfull {
        margin-left: calc((100vw - 100%) / 2 * -1);
        width: 100vw;
      }
    }
  }
}

/* search form */

.search {
  display: block;
  margin-inline: 0;
  max-width: 630px;
  & .search_inside-wrapper {
    border: 1px solid var(--color--grey-mid);
    border-radius: 100px;
    padding: 4px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: nowrap;
    max-width: 100%;
    background: var(--color--white);
  }
  & input {
    border-radius: calc(100px - 4px);
    border: none;
    padding: 0 4px;
    flex-grow: 1;
    margin-inline: 0;
    min-width: 3rem;
    text-decoration: unset !important;    
  }
  & .search-button {
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 100px;
    line-height: 0;
    background: var(--color--black) no-repeat center/45% url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="19.711" height="20.153" viewBox="0 0 19.711 20.153"><g id="surface9452" transform="translate(0.74 0.74)"><path id="Path_7" data-name="Path 7" d="M17.861,10.042A7.081,7.081,0,1,1,10.78,2.961,7.081,7.081,0,0,1,17.861,10.042Zm0,0" transform="translate(-3.699 -2.961)" fill="none" stroke="%23fff" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1.48"/><path id="Path_8" data-name="Path 8" d="M23.848,23.848l5.875,5.875" transform="translate(-11.798 -11.357)" fill="none" stroke="%23fff" stroke-miterlimit="10" stroke-width="2.96"/></g></svg>');
  }

}

/* quick search button */
.preset-search-buttons {
    margin-top: -10px;
    /* margin-top: 12px; */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.preset-search-buttons button {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 20px;
    border: 1px solid #d1d5db;
    background-color: var(--color--lilac-blue);
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover effect */
.preset-search-buttons button:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

/* Click effect */
.preset-search-buttons button:active {
    transform: scale(0.97);
    background-color: #95B2EC;
}

/* Optional: primary highlight style */
.preset-search-buttons button.primary {
    background-color: #2563eb;
    color: white;
    border: none;
}

.preset-search-buttons button.primary:hover {
    background-color: #1d4ed8;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
}

.signup-btn {
  background: #001f3f;
  color: #fff;
  border-radius: 5px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  position: absolute;
  right: 20px;
  border: none;
}
.search-alert-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.search-alert-cta p {
  margin: 0;
  font-size: 15px;
  color: #fff;
  flex: 1;
  min-width: 250px;
  line-height: 1.5;
  text-align: center;
}

.subscribe-btn {
  background: var(--color--lilac-blue);
  color: #001f3f;
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.success-message {
  text-align: center;
  padding: 20px 10px;
}

.success-message h4 {
  margin-bottom: 10px;
  font-size: 20px;
}

.success-message p {
  color: #555;
  line-height: 1.5;
}

.subscribe-btn:hover {
  transform: translateY(-1px);
}

.explore-text{
  text-align: center;
  color:white;
}

.search-guide-link-container{
  text-align: center;
}

.search-guide-link-container a {
  text-decoration: underline !important;
  color: var(--color--lilac-blue) !important;
  font-weight: bold !important;
}

.guide-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.guide-modal.hidden {
  display: none;
}

.guide-modal-content {
  width: min(90%, 650px);
  background: #f2f2f4;
  border-radius: 24px;
  padding: 36px;
  position: relative;
}

.guide-close {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  background: transparent;
  font-size: 32px;
  color: #777;
  cursor: pointer;
}

.guide-modal-content h2 {
  text-align: center;
  margin-bottom: 24px;
  color: black;
}

.guide-intro-container{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.guide-intro {
  color: #333;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 650px !important
}

.accordion-item {
  margin-bottom: 2px;
}

.accordion-header {
  width: 100%;
  border: none;
  background: var(--color--lilac-blue);
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
}

.accordion-content {
  display: none;
  background: #c7d2ea;
  padding: 20px;
  line-height: 1.7;
}

.accordion-item.active .accordion-content {
  display: block;
}

.accordion-item.active .accordion-header {
  background: #c7d2ea;
  border-bottom: 1px solid rgba(0,0,0,.08);
}


/* .site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  width: 100%;
  box-sizing: border-box;
  gap: 16px;
} */

/* .site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.site-logo img {
  max-width: 180px;
  width: 100%;
  height: auto;
  display: block;
} */

.signup-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: #0b2d52;
  color: white;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 30px;
}

.syntax-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-layer {
  position: relative;
  flex: 1;
}

.search-highlight,
.syntax-input {
  width: 100%;
  padding: 12px 16px;
  box-sizing: border-box;
}

.search-highlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.syntax-input {
  position: relative;
  z-index: 2;
  background: transparent;
  color: transparent;
  caret-color: black;
}

/* Keep button fixed on the far right */
.search-button {
  flex-shrink: 0;
  margin-left: 12px;
}

.syntax-input::placeholder {
  color: #999;
}

.op-and {
  color: green;
  font-weight: 700;
}

.op-or {
  color: blue;
  font-weight: 700;
}

.op-not {
  color: red;
  font-weight: 700;
}

/* Tablet */
@media (max-width: 768px) {
  .site-header {
    padding: 12px 16px;
  }

  .site-logo img {
    max-width: 150px;
  }

  .signup-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .site-header {
    /* display: flex;
    align-items: center;
    justify-content: space-between; */
    padding: 10px 14px;
    gap: 10px;
  }

  .site-logo img {
    max-width: 130px;
  }

  .signup-btn {
    padding: 6px 9px;
    font-size: 9px;
  }
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index:1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 25px;
  border-radius: 12px;
  width: 350px;
}

.close {
  float: right;
  cursor: pointer;
  font-size: 20px;
}

.industry-options {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.email-input{
  width:92%;
  padding:10px;
  margin-top:5px;
}
.submit-btn {
  width: 100%;
  padding: 10px;
  background: #95B2EC;
  color: black;
  border-radius: 8px;
  cursor: pointer;
  border: none;
}

.export-btn {
    background: #1f4fff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.export-btn:hover {
    background: #163ecc;
}



/* search results */

.results {
  display: grid;
  padding-inline: 0;
  max-width: 550px !important;
  margin-inline: auto;
  margin-block: var(--spacing--30) var(--spacing--50);
  gap: var(--spacing--10);
  & .result {
    display: block;
    padding: var(--spacing--20);
    border-radius: 12px;    
    background: white;
    display: grid;
    gap: calc(var(--spacing--10) / 2);
    box-sizing: border-box;
    opacity: 1;
    
    @media (prefers-reduced-motion: no-preference) {
      & {
        animation: animate-in-and-out linear both;
        animation-timeline: view();
      }
    }
    .title {
      font-weight: 400;
    }
    .excerpt {
      -webkit-box-orient: vertical;
      display: -webkit-box;
      -webkit-line-clamp: 3; 
      overflow: hidden; 
      text-decoration: none !important;       
    }
    @media (max-width: 650px) {
      & {
        width: 100vw;
        margin-left: calc((100vw - 100%) / 2 * -1);
        border-radius: 0px;
        box-shadow: 0 0 0 1px #ebedef;
        gap: var(--spacing--10);
        padding:  0.75rem 1rem;
      }
    }
  }
}

.counter {
  max-width: 550px !important;
  margin-inline: auto;  
}

:has(> .scroll-to-top) {
  position: sticky;
  bottom: var(--spacing--20);
  pointer-events: none;
}
.scroll-to-top {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 100%;
  border: 5px solid var(--color--grey-light);
  filter: invert(1);
  background: var(--color--grey-light) no-repeat center/cover url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="45.48" height="45.48" viewBox="0 0 45.48 45.48"><g id="surface14456" transform="translate(-1.479 -1.479)"><path id="Path_66" data-name="Path 66" d="M46.219,24.219a22,22,0,1,1-22-22A22,22,0,0,1,46.219,24.219Zm0,0" transform="translate(0 0)" fill="none" stroke="%231e1e1e" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="1.48"/><path id="Path_67" data-name="Path 67" d="M12.578,17.618l8-8,8,8" transform="translate(3.639 2.6)" fill="none" stroke="%231e1e1e" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="1.48"/><path id="Path_68" data-name="Path 68" d="M18.5,9.621v24" transform="translate(5.719 2.6)" fill="none" stroke="%231e1e1e" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="1.48"/></g></svg>');
  pointer-events: auto;
  position: relative;
}


.results-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 5px;
}

.controls-icons {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
}

.icon-btn:hover {
    background: #f3f4f6;
}

/* Dropdown */
.dropdown {
    position: absolute;
    right: 255px;
    margin-top: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    z-index: 1000;
}

.dropdown button {
    display: block;
    width: 100%;
    padding: 6px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
}

.dropdown button:hover {
    background: #f3f4f6;
}

.hidden {
    display: none;
}

.positionAndParty {
    margin: 0;
}

@keyframes animate-in-and-out {
  entry 0%  {
    opacity: 0; 
    scale: 0.9;
  }
  entry 100%  {
    opacity: 1;
    scale: 1;
  }
  exit 0% {
    opacity: 1;
  }
  exit 100% {
    opacity: 0;
  }
}