/*-- -------------------------- -->
<---          Content           -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {
  #content-1450 {
    padding: var(--sectionPadding);
  }
  #content-1450 .cs-container {
    width: 100%;
    max-width: 51.25rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sectionGap);
  }
  #content-1450 .cs-content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #content-1450 .cs-title,
  #content-1450 .cs-text {
    max-width: 100%;
  }
}

/*-- -------------------------- -->
<---       Publications         -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {
  #tools-section {
    padding: var(--sectionPadding);
    padding-top: 2rem;
  }

  #tools-section .cs-container {
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  /* ---- Sidebar ---- */
  #tools-section .cs-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  /* Search section */
  #tools-section .cs-search-title-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  #tools-section .cs-search-title-wrapper .cs-title {
    font-size: 0.6875rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primaryDark);
    margin: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--lineColor);
    width: 100%;
  }
  #tools-section .cs-search-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
  #tools-section .cs-content input.cs-search {
    width: 100%;
    height: 2.25rem;
    padding: 0 0.75rem 0 2.25rem;
    border: 1px solid var(--lineColor);
    border-radius: 4px;
    font-size: 0.8125rem;
    font-family: 'Figtree', sans-serif;
    color: var(--bodyTextColor);
    background: white url(../assets/icons/search.svg) no-repeat center left 8px;
    background-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
  }
  #tools-section .cs-content input.cs-search:focus {
    border-color: var(--primary);
  }
  #tools-section .cs-content input.cs-search::placeholder {
    color: var(--bodyTextColor);
    opacity: 0.4;
    font-size: 0.8125rem;
  }
  #tools-section .cs-search-wrapper img.order-by-button {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
  }
  #tools-section .cs-search-wrapper img.order-by-button:hover {
    opacity: 1;
  }

  /* PI only checkbox */
  #tools-section .cs-pi-only-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
  }
  #tools-section .cs-pi-only-checkbox label {
    font-size: 0.8125rem;
    font-family: 'Figtree', sans-serif;
    color: var(--bodyTextColor);
    opacity: 0.7;
    cursor: pointer;
    user-select: none;
  }
  #tools-section .cs-pi-only-checkbox input[type="checkbox"] {
    accent-color: var(--primary);
    width: 0.9375rem;
    height: 0.9375rem;
    cursor: pointer;
  }

  /* Filter button wrapper */
  #tools-section .cs-content .cs-filter-button-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1.25rem;
    border: none;
    padding: 0;
    margin: 0;
  }
  #tools-section .cs-content .cs-filter-button-wrapper > div {
    display: none;
  }
  #tools-section .cs-content .cs-filter-button-wrapper .cs-add-filter-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
  }
  #tools-section .cs-content .cs-filter-button-wrapper .cs-add-filter-wrapper .cs-title {
    margin: 0;
    font-size: 0.6875rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primaryDark);
  }
  #tools-section .cs-content .cs-filter-button-wrapper .cs-add-filter-wrapper img {
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s;
    width: 1.25rem;
    height: 1.25rem;
  }
  #tools-section .cs-content .cs-filter-button-wrapper .cs-add-filter-wrapper img:hover {
    opacity: 1;
  }

  /* Filter sub-sections: Year, Keywords, Journals */
  #tools-section .cs-filter-year-wrapper,
  #tools-section .cs-filter-keywords-wrapper,
  #tools-section .cs-filter-category-wrapper,
  #tools-section .cs-filter-journal-type-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  #tools-section .cs-filter-year-wrapper .cs-title,
  #tools-section .cs-filter-keywords-wrapper .cs-title,
  #tools-section .cs-filter-category-wrapper .cs-title,
  #tools-section .cs-filter-journal-type-wrapper .cs-title {
    font-size: 0.6875rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primaryDark);
    margin: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--lineColor);
    width: 100%;
  }
  #tools-section .cs-content .line {
    display: none; /* titles use border-bottom instead */
  }

  /* Year inputs */
  #tools-section .cs-start-end-wrapper {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
  }
  #tools-section .cs-start-end-wrapper input {
    width: 100%;
    height: 2.25rem;
    padding: 0 0.75rem;
    border: 1px solid var(--lineColor);
    border-radius: 4px;
    font-size: 0.8125rem;
    font-family: 'Figtree', sans-serif;
    color: var(--bodyTextColor);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    margin: 0;
  }
  #tools-section .cs-start-end-wrapper input:focus {
    border-color: var(--primary);
  }
  #tools-section .cs-start-end-wrapper input::placeholder {
    font-size: 0.8125rem;
    color: var(--bodyTextColor);
    opacity: 0.4;
    text-align: left;
  }

  /* Filter option pills (keywords / journals) */
  #tools-section .cs-filter-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    overflow: visible;
  }
  #tools-section .cs-filter-wrapper .filter-option {
    font-size: 0.875rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    color: var(--bodyTextColor);
    opacity: 0.65;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s, background-color 0.2s, color 0.2s;
    text-align: left;
  }
  #tools-section .cs-filter-wrapper .filter-option:hover {
    opacity: 1;
    background-color: var(--secondary);
  }
  #tools-section .cs-filter-wrapper .filter-option.active {
    opacity: 1;
    background-color: var(--secondary);
    color: var(--secondaryDark);
    font-weight: 600;
  }

  /* ---- Cards ---- */
  #tools-section .cs-title-card-wrapper {
    width: 100%;
  }
  #tools-section .cs-card-group {
    width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
  }
  #tools-section .cs-item {
    text-align: left;
    list-style: none;
    width: 100%;
    height: fit-content;
    margin: 0;
    padding: 0;
    background-color: #fff;
    box-shadow: var(--boxCardShadow);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
  }
  #tools-section .cs-item:hover {
    box-shadow: 0 4px 24px rgba(43, 58, 50, 0.12);
    transform: translateY(-2px);
  }

  /* Badge (altmetric/dimensions) */
  #tools-section .cs-badge {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    width: 64px;
    height: 64px;
    z-index: 2;
    opacity: 0.85;
  }

  /* Paper image — narrow accent strip */
  #tools-section .cs-picture {
    width: 100%;
    height: 2.75rem;
    overflow: hidden;
    display: block;
    position: relative;
    background-color: var(--secondary);
    border-bottom: 1px solid var(--lineColor);
    flex-shrink: 0;
  }
  #tools-section .cs-picture img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0.4;
    filter: saturate(0.6);
    transition: opacity 0.35s ease, filter 0.35s ease;
  }
  #tools-section .cs-item:hover .cs-picture img {
    opacity: 0.6;
    filter: saturate(0.9);
  }

  /* Card body */
  #tools-section .cs-flex-group {
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    position: relative;
  }

  /* Card top line */
  #tools-section .card-image-line {
    display: none; /* replaced by picture border-bottom */
  }

  /* Publication type badge */
  #tools-section .cs-publication-type {
    font-size: 0.6875rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondaryDark);
    background: var(--secondary);
    border-radius: 3px;
    padding: 0.2rem 0.5rem;
    line-height: 1.4;
    display: inline-block;
    margin-bottom: 0.35rem;
  }

  /* Title */
  #tools-section .cs-name {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--headerColor);
    display: block;
    margin: 0 0 0.2rem 0;
    text-align: left;
  }

  /* Authors */
  #tools-section .cs-publication-author {
    font-size: 0.8125rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    color: var(--bodyTextColor);
    opacity: 0.75;
    display: block;
    text-align: left;
    margin: 0;
    line-height: 1.45;
  }

  /* Year / month */
  #tools-section .cs-publication-year,
  #tools-section .cs-publication-month {
    font-size: 0.8125rem;
    font-family: 'Figtree', sans-serif;
    color: var(--bodyTextColor);
    opacity: 0.55;
  }

  /* Abstract */
  #tools-section .cs-flex-group .cs-desc {
    font-size: 0.75rem;
    line-height: 1.65;
    color: var(--bodyTextColor);
    opacity: 0.72;
    max-height: 4.5em;
    overflow: hidden;
    position: relative;
    margin-top: 0.2rem;
    text-align: left;
  }
  #tools-section .cs-flex-group .cs-desc.show-more {
    overflow: unset;
    max-height: unset;
  }
  #tools-section .cs-flex-group .cs-desc {
    font-size: 0.75rem;
    line-height: 1.65;
    color: var(--bodyTextColor);
    opacity: 0.72;
    max-height: 4.5em;
    overflow: hidden;
    position: relative;
    margin-top: 0.2rem;
  }
  #tools-section .cs-flex-group .cs-desc.show-more {
    overflow: unset;
    max-height: unset;
  }
  #tools-section .cs-flex-group .read-more-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primaryDark);
    cursor: pointer;
    letter-spacing: 0.02em;
    display: inline-block;
    margin-top: 0.15rem;
    transition: opacity 0.2s;
  }
  #tools-section .cs-flex-group .read-more-btn:hover {
    opacity: 0.7;
  }

  /* Divider inside card */
  #tools-section .cs-flex-group .line {
    width: 100% !important;
    max-width: unset !important;
    margin: 0.5rem 0 !important;
    opacity: 0.45;
  }

  /* Keyword tags */
  #tools-section .cs-item-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.1rem;
  }
  #tools-section .cs-item-filters .cs-filter {
    font-size: 0.6875rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--secondaryDark);
    background: var(--secondary);
    border-radius: 3px;
    padding: 0.2rem 0.5rem;
    line-height: 1.4;
  }

  /* Social / PDF / link icons */
  #tools-section .cs-item-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.1rem;
    width: 100%;
  }
  #tools-section .cs-item-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--secondary);
    opacity: 0.65;
    transition: opacity 0.2s, background-color 0.2s;
    flex-shrink: 0;
  }
  #tools-section .cs-item-social a:hover {
    opacity: 1;
    background-color: var(--primaryLight);
  }
  #tools-section .cs-item-social a img {
    width: 0.875rem;
    height: 0.875rem;
    object-fit: contain;
  }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #tools-section .cs-card-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #tools-section .cs-container {
    max-width: 80rem;
    flex-direction: row;
    align-items: flex-start;
  }
  #tools-section .cs-content {
    flex-direction: column;
    flex-wrap: nowrap;
    width: 18%;
    min-width: 13rem;
    overflow: hidden;
  }
  #tools-section .cs-filter-year-wrapper,
  #tools-section .cs-filter-keywords-wrapper,
  #tools-section .cs-filter-category-wrapper,
  #tools-section .cs-filter-journal-type-wrapper {
    width: 100%;
    align-items: flex-start;
  }
  #tools-section .cs-filter-year-wrapper .cs-title,
  #tools-section .cs-filter-keywords-wrapper .cs-title,
  #tools-section .cs-filter-category-wrapper .cs-title,
  #tools-section .cs-filter-journal-type-wrapper .cs-title {
    text-align: left;
  }
  #tools-section .cs-start-end-wrapper {
    flex-direction: row;
  }
  #tools-section .cs-start-end-wrapper input {
    width: 100%;
  }
  #tools-section .cs-content .cs-filter-button-wrapper {
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 0;
    border: none;
  }
  #tools-section .cs-content .cs-filter-button-wrapper > div {
    display: flex;
  }
  #tools-section .cs-content .cs-filter-button-wrapper .cs-add-filter-wrapper {
    display: none;
  }
  #tools-section .cs-card-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/*-- -------------------------- -->
<---      Copyright Notice      -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {
  #copyright-notice {
    padding: var(--sectionPadding);
    padding-top: 0;
  }
  #copyright-notice .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    border: 1px solid var(--lineColor);
    border-radius: 6px;
    box-sizing: border-box;
    background: #fff;
  }
  #copyright-notice .cs-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  #copyright-notice .cs-title {
    font-size: 0.6875rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primaryDark);
    margin: 0;
  }
  #copyright-notice .cs-text {
    font-size: 0.8125rem;
    font-family: 'Figtree', sans-serif;
    color: var(--bodyTextColor);
    opacity: 0.65;
    line-height: 1.65;
    max-width: unset;
    text-align: left;
    margin: 0;
  }
}

/* ---- Author tooltip ---- */
.author-tooltip {
  position: absolute;
  background-color: var(--headerColor);
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-family: 'Figtree', sans-serif;
  line-height: 1.5;
  max-width: 220px;
  white-space: normal;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(43,58,50,0.18);
}
/*-- -------------------------- -->
<---   Output type & areas      -->
<--- -------------------------- -*/
/* Output type badge on cards */
#tools-section .cs-output-type {
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondaryDark);
  background: var(--secondary);
  border-radius: 3px;
  padding: 0.15rem 0.45rem;
  margin-left: 0.4rem;
}

/* Research-area chips, lighter than keyword chips */
#tools-section .cs-item-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
#tools-section .cs-area {
  font-family: 'Figtree', sans-serif;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--bodyTextColor);
  background: transparent;
  border: 1px solid var(--lineColor);
  border-radius: 3px;
  padding: 0.15rem 0.45rem;
}

/* Collapsible filter sections (e.g. Journals) */
#tools-section .cs-collapsible {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
#tools-section .cs-chevron {
  transition: transform 0.2s ease;
  font-size: 1rem;
  opacity: 0.6;
}
#tools-section .cs-collapsible.cs-open .cs-chevron {
  transform: rotate(90deg);
}
#tools-section .cs-collapsed {
  display: none !important;
}