/* Root wrapper */
.tb-timeline {
  position: relative;
  padding: 40px 32px;
  border-radius: 36px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

/* Items container with connecting line */
.tb-timeline__items {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

/* Create the main dashed line using ::before pseudo-element */
.tb-timeline__items::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 33px; /* Aligned with center of dots (year line-height ~19px + dot center ~13.5px) */
  height: 2px;
  border-top: 2px dashed #e0e4ea;
  z-index: 1;
  pointer-events: none;
}

/* Each item */
.tb-timeline__item {
  position: relative;
  z-index: 2; /* above the line */
  flex: 1 1 180px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
}

/* Create curved vertical connector using ::after for items that wrap to next row */
.tb-timeline__item::after {
  content: '';
  position: absolute;
  left: 13.5px; /* Center of dot (half of 27px) */
  top: 35px; /* Just below the horizontal line (33px + 2px) */
  width: 2px;
  height: 0; /* Default: hidden */
  border-left: 2px dashed #e0e4ea;
  border-radius: 0 0 0 40px; /* Curved bottom corner */
  z-index: 1;
  pointer-events: none;
  transition: height 0.3s ease;
}

/* Show curved connectors on items that are likely at row ends */
/* Adjust based on typical items per row - usually 4-5 items fit per row */
.tb-timeline__item:nth-child(4n)::after,
.tb-timeline__item:nth-child(5n)::after {
  height: 100px; /* Vertical connector height - adjust based on row gap */
}

/* Hide on last item - no connector needed */
.tb-timeline__item:last-child::after {
  display: none;
}

/* Dot wrapper */
.tb-timeline__dot-wrapper {
  margin: 8px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 3;
}

.tb-timeline__dot {
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  display: block;
  position: relative;
  z-index: 3;
}

/* Text */
.tb-timeline__year {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 0;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

.tb-timeline__heading {
  font-weight: 500;
  margin-bottom: 4px;
  position: relative;
  z-index: 2;
}

.tbpub__headingTitle {
  color: var(--Deep-Blue, #2A2A3F);
font-family: "Instrument Sans";
font-size: 28px;
font-style: normal;
font-weight: 600;
line-height: 120%; /* 2.1rem */
}

.tb-timeline__description {
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
  position: relative;
  z-index: 2;
}

/* Responsive: vertical on small screens */
@media (max-width: 900px) {
  .tb-timeline {
    padding: 24px 20px;
  }

  .tb-timeline__items {
    flex-direction: column;
    gap: 24px;
  }

  .tbpub__heading {
    width: 100%;
    margin-bottom: 20px;
  }

  /* Vertical dashed line on mobile */
  .tb-timeline__items::before {
    left: 13px;
    right: auto;
    top: 27px;
    bottom: 22px;
    width: 2px;
    height: auto;
    border-top: none;
    border-left: 2px dashed #e0e4ea;
  }

  /* Remove curved connectors on mobile */
  .tb-timeline__item::after {
    display: none;
  }

  .tb-timeline__item {
    padding-left: 32px;
    max-width: none;
  }

  .tb-timeline__dot-wrapper {
    position: absolute;
    left: 0;
    top: 4px;
    margin: 0;
  }
}


.tbpub { width: 100%; }

.tbpub__headingContainer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 60px;
}

@media (max-width: 900px) {
  .tbpub__headingContainer {
    width: 100%;
    margin-bottom: 17px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }
}

.tbpub__heading {
  color: var(--Deep-Blue, #2A2A3F);
  font-family: "Instrument Sans";
  font-size: 28px;
  font-style: normal;
  font-weight: 600;
  line-height: 120%; /* 33.6px */
  width: 30%;

}

@media (max-width: 900px) {
  .tbpub__heading {

    font-size: 25px;
    width: 100%;
    margin-bottom: 20px;
}
}

.tbpub__heading svg {
  margin-left: 16px;
  height: 17.1px;
  width: 16.15px
}

.tbpub__filters {
  display: grid;
  grid-template-columns: 1fr 220px 180px;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.tbpub__searchWrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.tbpub__searchIcon {
  position: absolute;
  left: 12px;
  pointer-events: none;
  z-index: 1;
}

.tbpub__search {
  width: 342px;
  padding: 0.625rem 0.875rem 0.625rem 3.5rem;
  color: var(--Deep-Blue, #2A2A3F);
    font-family: "Instrument Sans";
    font-size: 16px;

    font-style: normal;
    font-weight: 400;
    line-height: 1.25rem; /* 125% */
  border-radius: 0;
  border: 1px solid rgba(255,255,255);
  background: rgba(255,255,255);
  color: inherit;
}
@media (max-width: 900px) {
  .tbpub__search {
    width: 100%;
  }
}

.tbpub__selectWrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.tbpub__selectIcon {
  position: absolute;
  right: 12px;
  pointer-events: none;
  z-index: 1;
}

.tbpub__select {
  width: 100%;
  padding: 0rem 0.875rem;
  height: fit-content;
  /* width: fit-content; */
  border-radius: 0px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255);
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: var(--Deep-Blue, #2A2A3F);
    /* Body D */
    font-family: "Instrument Sans";
    font-size: 16px;
    line-height: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 125% */
}

#tbpub-carqoc-cat {
  height: 34px;
}

#tbpub-carqoc-year {
  height: 34px;
}

.tbpub__results {
  width: 100%;
}

.tbpub__results.is-loading { opacity: 0.55; pointer-events: none; }

.tbpub__acc {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 14px 0;
}

.tbpub__accSummary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  border-bottom: 0.09375rem solid #2A2A3F;
  padding-bottom: 17px;
}

.tbpub__accSummary::-webkit-details-marker { display: none; }

.tbpub__accTitle {
  color: var(--Deep-Blue, #2A2A3F);
  font-family: "Instrument Sans";
  font-size: 40px;
  font-style: normal;
  font-weight: 500;
  line-height: 60px; /* 150% */
  letter-spacing: -0.8px;
}

@media (max-width: 900px) {
  .tbpub__accTitle {
    font-size: 25px;
    line-height: 120%;
  }
}

.tbpub__accIcon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tbpub__accIcon::before,
.tbpub__accIcon::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  background: #fff;
}

.tbpub__accIcon::after {
  transform: rotate(90deg);
}

details[open] .tbpub__accIcon::after { display: none; }

.tbpub__panel { padding: 14px 0 6px; }

.tbpub__cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1100px) {
  .tbpub__filters { grid-template-columns: 1fr 1fr; }
  .tbpub__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .tbpub__filters { grid-template-columns: 1fr; }
  .tbpub__cards { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}

.tbpub__card {
  position: relative;
  border-radius: 0.3125rem;
  background: var(--White, #FFF);
  /* Shadow 1 */
  box-shadow: 0 16px 40px 0 rgba(15, 27, 36, 0.10);
}

.tbpub__cardLink {
  border-radius: 0.3125rem;
  background: var(--White, #FFF);
  
  /* Shadow 1 */
  box-shadow: 0 16px 40px 0 rgba(15, 27, 36, 0.10);
}

.tbpub__thumb {
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,0.06);
}

.tbpub__thumb--empty { background-image: none; }

.tbpub__cardBody { padding: 12px 12px 16px; }

.tbpub__badge {
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 0;
  background: #DFE5E1;
  margin-bottom: 10px;
  color: var(--Deep-Blue, #2A2A3F);
  font-family: "Instrument Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  width: 100%;
}

.tbpub__cardTitle { 
  margin: 11px 0 45px;
  color: var(--Deep-Blue, #2A2A3F);
  font-family: "Instrument Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.tbpub__cardMeta { 
  color: var(--Deep-Blue, #2A2A3F);
  font-family: "Instrument Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.tbpub__download {
  position: absolute;
  right: 10px;
  bottom: 15px;
  display: flex;
  width: 20px;
  height: 22px;
  padding: 0.0625rem 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tbpub__sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

.tbpub__empty, .tbpub__emptySmall { padding: 16px 0; opacity: 0.8; }
