

/* Criteria page styles */

.criteria-updates {
  background: #e5dece;
  padding: 26px 24px;
}

.criteria-updates-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.criteria-updates-text {
    color: #282826;
    font-family: "Inter-SemiBold";
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0;
}

svg.crit-sr-cin {
    margin-left: -28px;
}

.criteria-updates-btn {
 display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 20px;
    background: #282826;
    border: none;
    text-decoration: none;
    color: #FFF;
    font-family: "Inter-Bold";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.criteria-updates-btn:hover {
  background: #000;
  color: #fff;
}

@media (max-width: 600px) {
  .criteria-updates {
    padding: 16px 20px;
  }

  .criteria-updates-inner {
    flex-direction: column;
    gap: 14px;
  }

  .criteria-updates-text {
    text-align: center;
  }

  .criteria-updates-btn {
    width: 100%;
  }
}


.criteria-list {
  background: #fff;
  padding: 50px 32px 80px;
}

.criteria-list-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}


.criteria-alphabet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45px, 1fr));
    row-gap: 20px;
    column-gap: 17px;
}

.alphabet-btn {
    height: 48px;
    border: 1px solid #DEE2E6;
    transition: background 150ms ease, color 150ms ease;
    width: 48px;
    text-align: center;
    font-family: "Inter-Regular";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 27px;
    background: #fff;
    color: #282826;
}

.alphabet-btn:hover {
  background: #f2efec;
}

.alphabet-btn.is-active {
  background: #282826;
  color: #fff;
  border-color: #282826;
}


.criteria-filter {
  margin-top: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.criteria-filter-left {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  min-width: 0;
}


.cr-dropdown {
    position: relative;
    width: 270px;
    flex-shrink: 0;
}

.cr-dropdown-toggle {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: #f2efec;
  border: 1px solid #e0dcd3;
  font-family: inherit;
  font-size: 14px;
  color: #282826;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.cr-dropdown-toggle:focus {
  outline: none;
  border-color: #282826;
}

.cr-dropdown-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #282826;
    font-family: 'Inter-SemiBold';
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.cr-dropdown-arrow {
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.cr-dropdown.is-open .cr-dropdown-arrow {
  transform: rotate(180deg);
}

.cr-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #f2efec;
  border: 1px solid #e0dcd3;
  z-index: 20;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.cr-dropdown-item {
    border: none;
    text-align: left;
    padding: 14.5px 14px;
    background: #F2EFEC;
    color: #000;
    font-family: "Inter-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.cr-dropdown-item:hover {
  background: #e5dece;
}

.cr-dropdown-item.is-active {
    background: #E5DECE;
    color: #000;
    font-family: "Inter-Bold";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.criteria-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 200px;
}

.criteria-select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #282826;
  border-bottom: 2px solid #282826;
  transform: rotate(45deg) translateY(-3px);
  pointer-events: none;
}

.criteria-select {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 14px;
  border: 1px solid #d8d4cd;
  background: #fff;
  font-family: "Inter-Regular";
  font-size: 14px;
  color: #282826;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.criteria-select:focus {
  outline: none;
  border-color: #282826;
}

.criteria-sort-wrap {
  min-width: 180px;
}

.criteria-search {
    position: relative;
    flex: 1;
    min-width: 191PX;
    max-width: 360px;
    display: inline-flex;
    align-items: center;
}

.criteria-search-icon {
  position: absolute;
  left: 14px;
  pointer-events: none;
}

.criteria-search-input {
    width: 191px;
    height: 48px;
    padding: 0 14px 0 10px;
    border: none;
    background: #F2EFEC;
    color: #828282;
    font-family: "Inter-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.criteria-search-input::placeholder {
  color: #8a8680;
}

.criteria-search-input:focus {
  outline: none;
  border-bottom-color: #282826;
}

.criteria-search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 320px;
  overflow-y: auto;
  background: #f2efe9;
  border: 1px solid #d8d4cd;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.criteria-search-suggestion {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 20px;
  border: 0;
  background: transparent;
  font-family: "Inter-Regular";
  font-size: 15px;
  color: #282826;
  cursor: pointer;
  border-bottom: 1px solid #e6e1d9;
}

.criteria-search-suggestion:last-child {
  border-bottom: 0;
}

.criteria-search-suggestion:hover,
.criteria-search-suggestion.is-active {
  background: #e9e3d8;
}

.criteria-search-suggestion-empty {
  padding: 14px 20px;
  font-family: "Inter-Regular";
  font-size: 14px;
  color: #8a8680;
}


.criteria-stats {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: "Inter-Regular";
  font-size: 14px;
  color: #282826;
}

.criteria-count {
    color: #282826;
    font-family: "Inter-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.criteria-saved {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    padding: 0;
    color: #282826;
    font-family: 'Inter-Regular';
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 27px;
}

.criteria-saved:hover {
  color: #000;
}

.criteria-saved-chevron {
  transition: transform 200ms ease;
}

.criteria-saved[aria-expanded="true"] .criteria-saved-chevron {
  transform: rotate(180deg);
}

.criteria-saved-panel {
  margin-top: 14px;
  border-top: 1px solid #d8d4cd;
  border-bottom: 1px solid #d8d4cd;
  padding: 18px 0 22px;
  font-family: "Inter-Regular";
}

.criteria-saved-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.criteria-saved-list li {
  font-size: 14px;
  color: #282826;
}

.criteria-saved-empty {
  font-size: 14px;
  color: #8a8680;
}

.criteria-saved-pdf {
  background: #282826;
  color: #fff;
  border: 0;
  padding: 14px 36px;
  font-family:  "Inter-SemiBold";
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease;
}

.criteria-saved-pdf:hover {
  background: #000;
}

.criteria-saved-pdf:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.criteria-accordion {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.criteria-accordion-item {
  background: #f2efec;
}

.criteria-accordion-toggle {
    width: 100%;
    border: none;
    background: transparent;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
}

.criteria-accordion-toggle:focus {
  outline: none;
}

.criteria-accordion-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.criteria-accordion-title {
    color: #282826;
    font-family: "Inter-SemiBold";
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 30px;
}

.criteria-tag {
display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0px 13.5px;
    background: #fff;
    color: #282826;
    text-align: center;
    font-family: 'Inter-Regular';
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 14px;
}

.criteria-chevron {
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.criteria-accordion-toggle:not(.collapsed) .criteria-chevron {
  transform: rotate(180deg);
}

.criteria-accordion-body {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  background: #fff;
  border-right: 2px solid #F2EFEC;
  border-bottom: 2px solid #F2EFEC;
  padding: 0px 32px 0 0;
}

.criteria-detail-accepted {
  align-self: center;
    border-top: 2px solid #FFF;
    background: #F2EFEC;
    padding: 25px 10px 25px 30px;
    text-align: left;
}

.criteria-detail-label {
  font-size: 14px;
  font-weight: 500;
  color: #282826;
  margin-bottom: 8px;
}

.criteria-detail-value {
  font-size: 14px;
  color: #282826;
}

.criteria-detail-question {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #282826;
  line-height: 1.45;
}

.criteria-detail-answer {
    margin: 0;
    font-size: 14px;
    color: #282826;
    line-height: 1.55;
    padding: 15px 0 0 25px;
}

.criteria-detail-answer p strong {
    color: #000;
    font-family: "Inter-SemiBold";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 25px;
}

.criteria-detail-answer p {
    color: #000;
    font-family: "Inter-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.criteria-detail-accepted {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.criteria-detail-save {
align-self: center;
    background: #282826;
    color: #fff;
    border: 0;
    padding: 13px 12px;
    transition: background 150ms ease;
    text-align: center;
    font-family: "Inter-Bold";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-left: 50px;
    width: 88px;
    height: 48px;
}

.criteria-detail-save:hover {
  background: #000;
}

.criteria-detail-save.is-saved {
  background: #4c4c49;
}

.criteria-empty {
  padding: 22px 28px;
  background: #f2efec;
  font-family: "Inter-Regular";
  font-size: 14px;
  color: #4c4c49;
}


.criteria-pagination {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-btn,
.page-arrow {
    min-width: 48px;
    height: 48px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    color: #282826;
    text-align: center;
    font-family: "Inter-Regular";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 27px;
    background: #fff;
}

.page-btn:hover,
.page-arrow:hover {
  background: #f2efec;
}

.page-btn.is-active {
  background: #282826;
  color: #fff;
}

.page-ellipsis {
  font-family: "Inter-Regular";
  font-size: 14px;
  color: #282826;
  padding: 0 6px;
}

.page-arrow {
  margin-left: 6px;
  border: none;
}

.page-arrow:first-child {
  margin-left: 0;
  margin-right: 6px;
  border: none;
}

.page-arrow[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  border: none;
}

.page-arrow[disabled]:hover {
  background: transparent;
}



@media (max-width: 768px) {
  .criteria-list {
    padding: 36px 0 60px;
  }

  .criteria-alphabet {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .criteria-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .criteria-filter-left {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .criteria-select-wrap,
  .criteria-sort-wrap,
  .criteria-search,
  .cr-dropdown {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .criteria-accordion-toggle {
    padding: 18px 20px;
  }

  .criteria-accordion-body {
    padding: 0 20px 22px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .criteria-detail-content {
    border-left: 0;
    border-top: 1px solid #c9c2b3;
    padding-left: 0;
    padding-top: 16px;
  }

  .criteria-detail-save {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .criteria-alphabet {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}


.whats-new-dialog {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 963px;
  max-width: 100%;
  margin: 0;
  height: 100vh;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  will-change: transform;
}

.modal.fade .whats-new-dialog {
  transform: translateX(100%) !important;
}

.modal.show .whats-new-dialog {
  transform: translateX(0) !important;
}

.whats-new-modal ~ .modal-backdrop {
  transition: opacity 0.4s ease;
}

.whats-new-content {
  background: #e5dece;
  color: #282826;
  border: none;
  border-radius: 0;
  height: 100%;
  width: 100%;
  overflow-y: auto;
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.45);
}

.whats-new-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 80px 24px;
  gap: 24px;
}

.whats-new-title {
    margin: 0;
    color: #282826;
    font-family: "Vanilla Bold";
    font-size: 48px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.whats-new-close {
    width: 68px;
    height: 68px;
    background: #282826;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    flex-shrink: 0;
}

.whats-new-close:hover {
  background: #000;
}

.whats-new-body {
    width: 561px;
    height: 316px;
    background: #F2EFEC;
    padding: 28px 40px;
    margin-left: 80px;
}

.whats-new-card-title {
    margin: 0 0 18px;
    color: #282826;
    font-family: "Inter-SemiBold";
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 48px;
}

.whats-new-card-list p {
    color: #282826;
    font-family: "Inter-Regular";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 0px;
    margin-top: 0px;
}

.whats-new-card-list ul {
    padding: 10px 0 0 0;
}

.whats-new-card-list {
  margin: 0 0 28px;
  padding-left: 22px;
  font-family: "Inter-Regular";
  font-size: 16px;
  line-height: 1.6;
  color: #282826;
}

.whats-new-card-list li + li {
  margin-top: 6px;
}

.whats-new-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 20px;
    background: #282826;
    text-decoration: none;
    border: none;
    cursor: pointer;
    color: #FFF;
    text-align: right;
    font-family: "Inter-Bold";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.whats-new-card-btn:hover {
  background: #000;
  color: #fff;
}

@media (max-width: 768px) {
  .whats-new-header {
    padding: 24px 28px 20px;
  }

  .whats-new-title {
    font-size: 28px;
  }

  .whats-new-body {
    padding: 8px 28px 60px;
  }

  .whats-new-card {
    padding: 24px;
  }

  .whats-new-card-title {
    font-size: 20px;
  }
}


.pdf-doc {
  width: 595px;
  padding: 40px 48px 60px;
  background: #fff;
  font-family: "Inter-Regular";
  color: #1c1c1a;
  box-sizing: border-box;
  position: relative;
}

.pdf-header {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 32px;
}

.pdf-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin: 0 0 22px;
}

.pdf-section {
  margin-bottom: 24px;
}

.pdf-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #4c4c49;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pdf-q {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 10px;
  color: #1c1c1a;
}

.pdf-body {
  background: #ece4d4;
  padding: 16px 18px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.pdf-accepted {
  flex: 0 0 78px;
  border-right: 1px solid #b8ad95;
  padding-right: 14px;
}

.pdf-accepted-label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pdf-accepted-value {
  font-size: 12px;
}

.pdf-answer {
  flex: 1;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.pdf-footer {
  margin-top: 40px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
}

/* Hide the data-source container (used by JS to read items, never visible) */
.criteria-data-source {
  display: none !important;
}

/* Reset the empty Accepted? column when there's no real "accepted" data */
.criteria-detail-accepted .criteria-detail-label {
  font-weight: 700;
  font-family: "Inter-SemiBold";
}
