/* VISION STATEMENT HEADER */
.header-berkeley {
  font-family: "Cormorant", serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: italic;
  text-align: center;
  font-size: clamp(1.5rem, 6vw, 4rem);
  line-height: 1.2;
  background-color: var(--_colours---grey-v-light);
}

.child-quote {
  text-align: right;
  background-color: var(--_colours---grey-v-light);
  margin-top: 0px;
}
/* ITEMSLIST */
.itemslist ul {
  list-style-type: none;
  padding-left: 0;
}

.itemslist li {
  display: flex;
  flex-direction: row;
  align-items: flex-start; /* <— forces top alignment */
  position: relative;

  gap: clamp(0.324rem, 0.21px + 1.25vw, 1.25rem); /*PROPORTIONS: m-sm */
  margin: clamp(0.524rem, 0.38px + 2.002vw, 2rem); /*PROPORTIONS: m-sm */
  padding: clamp(0.2rem, 0.22px + 0.744vw, 0.75rem); /*PROPORTIONS: p-xs */
  background-color: var(--_colours---grey-vv-light);
}

.itemslist li::after {
  content: '';
  position: absolute;
  bottom: calc(-1 * clamp(0.524rem, 0.38px + 2.002vw, 2rem) / 2);
  left: 0;
  right: 0;
  height: 1px;
  border-bottom: 1px dashed var(--_colours---grey-dark);
}


.itemslist li:last-child {
  border-bottom: none;
}

.itemslist img {
  max-width: clamp(6rem, 30%, 12rem); /* ideally 12rem, but never more than 30% of container width */
  height: auto;
  display: block;
}

.container-header { 
  margin-bottom: 0; /* TODO: maybe sections should always have 0 bottom margin? */
}

@media (max-width: 480px) {
  .itemslist li {
    flex-direction: column;
    align-items: center; /* <— centers items in column layout */
  }

  .itemslist img {
    order: -1; /* move image above text */
    max-width: clamp(6rem, 100%, 24rem); /* scale with container but never smaller than 6rem or larger than 24rem */
    height: auto;
  }
}


/* Utility class for interactive chip-like elements */
.interactive-chip {
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: all 0.2s ease;
  user-select: none;
  padding: 0.25rem 0.5rem; /* A common base padding */
}

.interactive-chip:hover {
  background-color: var(--_colours---grey-v-light);
  text-decoration: underline;
}

.interactive-chip.is-active {
  background-color: var(--_colours---grey-v-dark);
  color: white;
}

/* Component styles for tag buttons */
.container-filter {
    border-bottom: 1px dashed black;
}



/* Vertical dashed line separator */
/*
a.tagbtn {
    padding: 0.2rem 0.4rem; 
    position: relative;
    border-right: 1px dashed var(--_colours---grey-dark);
}

a.tagbtn::after {
    content: "";
    position: absolute;
    right: -0.3rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1em;
    
}*/



/* Date Filter Styles */
.container-date-filter {
  border-bottom: 1px dashed var(--_colours---grey-dark)
}

.date-filter-years {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  justify-content: flex-start;
  align-items: center;
}

.date-filter-months {
  display: flex;
  gap: clamp(0rem, 2.5vw - 1rem, 1rem);
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

.filter-year,
.filter-month {
  /* Specific padding for filter elements, overrides .interactive-chip */
  padding: 0.25rem 0.5rem;
}

/* The :hover and .selected styles are now handled by .interactive-chip:hover and .interactive-chip.is-active */

.filter-month.not-clickable {
  text-decoration: line-through;
  color: var(--_colours---grey-medium);
  cursor: default;
}

.filter-month.not-clickable:hover {
  background-color: transparent;
}

/* Month abbreviation display control */
.filter-month .month-short {
  display: none;
}

.filter-month .month-full {
  display: inline;
}

/* Media queries for responsive month abbreviations */
@media screen and (max-width: 640px) {

  .date-filter-years {
    gap: 0.5rem;
  }

  .date-filter-months {
    gap: 0rem;
  }

  .filter-month .month-short {
    display: inline;
  }

  .filter-month {
    padding: clamp(0.1rem, 0.5vw, 0.25rem) clamp(2.5px, 1.77vw - 3.34px, 0.5rem);
  }

  .filter-month .month-full {
    display: none;
  }
}


