/* ---------- SWITCH ---------- */

.switch {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  width: auto;
  height: 18px;
}

.switch input {
  display: none;
}

.slider {
  position: relative;
  display: inline-block;
  background-color: #C5C5C5;
  width: 40px;
  height: 8px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 0;
  bottom: -0.281rem;
  background-color: #5F5F5F;
  border-radius: 0.25rem;
  -webkit-transition: .4s ease-in-out;
  transition: .4s ease-in-out;
}

input:checked+.slider:before {
  -webkit-transform: translateX(22px);
  -ms-transform: translateX(22px);
  transform: translateX(22px);
}

.label {
  font-size: 0.875;
  font-weight: 200;
}

/* ---------- DROPDOWN MENU ---------- */

.dropdown-trigger {
  grid-column: 1 / 3;
  position: relative;
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* filter-dropdown.is-open .dropdown-trigger {
  background-color: #555555;
  color: #ffffff;
  border-bottom: none;
} */

.trigger-text {
  text-align: center;
}

.trigger-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

filter-dropdown {
  position: relative;
  display: block;
}

/* Optional: If your component has an internal button/trigger element */
filter-dropdown.active-filter .dropdown-trigger {
  background-color: #5f5f5f;
  color: #ffffff;
}

.dropdown-content {
  position: absolute;
  top: 101%;
  left: 0;
  width: 99.7%;
  z-index: 100;
  background-color: white;

  max-height: 292px;
  overflow-y: auto;
  margin-left: 1px;
}

.dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background: #c8c8c8;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.dropdown-item {
  width: 100%;
  border-top: 1px solid black;
  font-size: 1rem;
  position: relative;
}

.dropdown-item:last-of-type {
  border-bottom: 1px solid black;
}

.dropdown-item-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: inherit;
  width: 100%;
  box-sizing: border-box;
  padding: 1.25rem 0;
  max-height: 4.5rem;
}

.item-text {
  text-align: center;
  user-select: none;
  padding: 0 2rem;
}

/* ---------- CHECKBOX ---------- */

.checkbox-container {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.dropdown-checkbox {
  position: absolute;
  opacity: 0;
  cursor: inherit;
  height: 100%;
  width: 100%;
  margin: 0;
  z-index: 101;
}

.custom-checkbox {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  background-color: #ffffff;
  border: 1px solid #7d7d7d;
  border-radius: 6px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  z-index: 101;
}

.custom-checkbox::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  background-color: #555555;
  border-radius: 4px;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s cubic-bezier(0.12, 0.4, 0.29, 1.46);
}

.dropdown-checkbox:checked~.custom-checkbox::after {
  transform: translate(-50%, -50%) scale(1);
}

/* ---------- RESERACH CARD ---------- */
.research-card {
  position: relative;
  border: 1px solid black;
  display: flex;
  flex-direction: row;
  height: 480px;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Space Grotesk';
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 0 350px;
}

.research-card:nth-child(3n+1) {
  grid-column: 1/3;
}

.research-card:nth-child(3n+2) {
  grid-column: 4/6;
}

.research-card:nth-child(3n) {
  grid-column: 7/9;
}

.research-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.card-program-stripes {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: row;
  z-index: 12;
  pointer-events: none;
}

.stripe-bar {
  width: 4px;
  height: 100%;
  display: block;
}

.card-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.card-type-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid black;
  border-radius: 4px;
  padding: 4px 8px;
  width: fit-content;
  font-size: 1rem;
  font-family: inherit;
  margin: 0.688rem;
  grid-column: 1 / 3;
  grid-row: 1;
}

.back-to-archive {
  display: grid;
  align-items: center;
  font-size: 1.125rem;
  color: black;
  text-underline-offset: 0.85rem;
  text-decoration: underline
}

.back-to-archive.right {
  grid-column: 4 / 6;
  justify-content: end;
  grid-row: 1;
}

.back-to-archive.left {
  grid-column: 1 / 3;
  justify-content: start;
}

.research-card,
[id^="node-"] {
  scroll-margin-top: 180px;
}

.research-node-page {
  display: grid;
  grid-column: 1 / 6;
  grid-template-columns: 1fr 1fr 1rem 1fr 1fr;
  margin-bottom: 20rem;
}

.research-node-page .card-type-badge {
  margin: 0;
}

.node-details {
  grid-column: 8 / 9;
  margin-top: 16px;
}

.mobile-author-contributor{
  display: none;
}

.descriptor {
  font-size: 0.75rem;
  color: black;
  opacity: 0.7;
  line-height: 1rem;
  margin-top: 24px;
  margin-bottom: 5px;
  font-weight: 300;
}

.detail {
  font-size: 0.875rem;
  color: black;
  opacity: 0.7;
  line-height: 1rem;
  margin-bottom: 6px;
}

.download {
  border: 1px solid black;
  display: flex;
  flex-direction: column;
  padding: 0.625rem 1.125rem;
  margin-top: 4rem;
}

.download>span:nth-child(1) {
  color: #D84A4A;
  font-size: 1rem;
}

.download>span:nth-child(2) {
  color: black;
  opacity: 0.7;
  font-size: 0.75rem;
}

.zip {
  display: flex;
  justify-content: space-between;
}

.zip>span {
  font-size: 1rem;
}

.node-title,
.research-node-page h1 {
  grid-column: 1 / 6;
  font-size: 1.5rem;
  color: #D84A4A;
  margin: 3.5rem 0 2rem 0;
  font-weight: 500;
}

.node-text {
  grid-column: 1 / 6;
}

.node-photo-archive-wrapper,
.node-sound-archive-wrapper {
  grid-column: 1 / 6;
  display: grid;
  grid-template-columns: 1fr 1fr 1rem 1fr 1fr;
  margin-top: 16px;
}

.node-photo-item {
  height: 272px;
  border: 1px solid black;
  margin-bottom: 1rem;
  background: white;
  content-visibility: auto;
  contain-intrinsic-size: 0 272x;
}

.node-photo-item:hover,
.download:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.node-photo-item:nth-child(2n+1) {
  grid-column: 1 / 3;
}

.node-photo-item:nth-child(2n) {
  grid-column: 4 / 6;
}

.node-photo-item img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  content-visibility: auto;
  aspect-ratio: 16 / 9;
}

.node-photo-caption {
  font-size: 0.75rem;
  color: black;
  opacity: 0.7;
  padding: 1rem 1rem 0 1rem;
  line-height: 1rem;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.3 * 22px * 2);
}

.node-photo-item {
  cursor: pointer;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
}

.lightbox.active {
  display: block;
}

.lightbox-content {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  max-height: 100vh;
  box-sizing: border-box;
}

.lightbox-img-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.lightbox-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#lightbox-caption {
  flex: 0 0 auto;
  padding: 16px 100px;
  text-align: center;
  color: white;
  font-size: 1rem;
  line-height: 1rem;
  font-weight: 200;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  padding: 0;
  margin: 16px;
  transition: opacity 0.2s ease;
}

.lightbox-close {
  right: 1.5rem;
  font-size: 2.5rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 0.6;
}

.node-sound-item {
  grid-column: 1 / 6;
  background-color: #7C7C7C;
  padding: 26px 44px;
  height: 189px;
  margin-bottom: 32px;
}

.custom-audio-player {
  background-color: #808080;
  color: #ffffff;
  padding: 2rem;
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 1.5rem 1rem;
  align-items: start;
  font-family: inherit;
}

.audio-info {
  grid-column: 1;
}

.audio-title {
  font-size: 1rem;
  line-height: 1.2;
  font-family: 'Space Grotesk';

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-play-btn {
  grid-column: 2;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  width: 2.5rem;
  height: 2.5rem;
}

.audio-play-btn svg {
  width: 100%;
  height: 100%;
}

.audio-controls-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.seek-bar-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
}

.audio-seek-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right,
      #000000 0%,
      #000000 var(--progress, 0%),
      #ffffff var(--progress, 0%),
      #ffffff 100%);
  outline: none;
  cursor: pointer;
}

.audio-seek-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 28px;
  background: #000000;
  border: none;
  cursor: pointer;
}

.audio-seek-bar::-moz-range-thumb {
  width: 16px;
  height: 28px;
  background: #000000;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

.iframe-player-wrapper {
  grid-column: 1 / 6;
  height: 500px;
  margin-bottom: 92px;
}

.iframe-caption {
  margin-bottom: 24px;
}

.iframe-player-wrapper>iframe {
  height: 500px;
}

.node-url-wrapper {
  grid-column: 1 / 6;
  display: grid;
  grid-template-columns: inherit;
}

.embedded-url {
  display: block;
  grid-column: 1 / 6;
  width: 100%;
  height: 400px;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 1rem;
  margin-bottom: 3.5rem;
}

/* Specific styling for Spotify */
.embedded-url.embedded-spotify {
  height: 152px;
  aspect-ratio: auto;
}

.node-url-caption {
  grid-column: 1 / 6;
}

.node-url-caption a,
.node-text a {
  color: #000000;
}

.node-url-caption a:hover,
.node-text a:hover {
  color: #D84A4A;
  cursor: pointer;
}

.node-topics {
  grid-column: 1 / 3;
  margin: 3.75rem 0;
  display: flex;
  flex-direction: column;
}

.horizontal-line {
  grid-column: 1 / 6;
  height: 1px;
  width: 100%;
  border-bottom: 1px solid black;
}

.more {
  grid-column: 1 / 3;
  font-size: 0.875rem;
  color: black;
  opacity: 0.7;
  margin: 1.25rem 0;
}

.related-assets {
  grid-column: 1 / 9;
  display: grid;
  grid-template-columns: subgrid;
  margin: 2.25rem 0;
}

.badge-symbol {
  color: #D84A4A;
  ;
  margin-right: 6px;
}

.symbol-char {
  color: #D84A4A;
}

.badge-label {
  color: #333333;
  font-weight: 500;
}

.card-title {
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 400;
  padding-right: 2rem;
  color: #D84A4A;
  text-decoration: none;
  margin: 0.5rem 0 0 0.688rem;


  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  pointer-events: auto;
  content: "";
}

.card-topics {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  margin-bottom: 0.5rem;
  margin-left: 0.688rem;
}

.card-topics>.pixel-bg {
  line-height: 1.2rem;
}

.card-media-wrapper {
  width: 100%;
  overflow: hidden;
  margin-top: auto;
  margin-bottom: -1px;
}

.card-media-wrapper img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  z-index: 10;
  position: relative;
  aspect-ratio: 16 / 9;
  content-visibility: auto;
}

.card-footer {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  margin: 0 10px;
  border-top: 1px solid black;
  margin-top: 0;
}

.meta-project {
  font-size: 0.875rem;
  font-family: 'Space Grotesk';
}

.meta-year {
  font-size: 1rem;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.footer-meta {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 90%;
}

.card-arrow {
  width: 15px;
  height: 11px;
}


/* ---------- IDENTITY BUNDLE CARD ---------- */

.download-identity-bundle-card {
  grid-column: 2 / 5 !important;
  border: 1px solid black;
  padding: 14px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 480px;
  cursor: pointer;
  position: relative;
  user-select: none;
  margin: 45px 16px 0 0;
}

/* .download-card:hover {
  border-color: #000000;
} */

.identity-bundle-card-title {
  color: #D84A4A;
  font-size: 1.5rem;
  margin-top: 35px;
}

.identity-bundle-card-logo {
  font-size: 2.2rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: 0.05em;
  text-align: center;
  margin: 3rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.identity-bundle-card-footer {
  display: flex;
  flex-direction: column;
}

.identity-bundle-card-details {
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.identity-bundle-card-divider {
  border: none;
  border-top: 1px solid #1a1a1a;
  margin: 0 0 16px 0;
}

.identity-bundle-card-footer>.zip {
  align-items: center;
}

.identity-bundle-download-arrow {
  height: 1rem;
}

/* ---------- ACTIVITY REPORT CARD ---------- */

/* .activity-report-card {
  border: 1px solid black;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 480px;
  cursor: pointer;
  position: relative;
  user-select: none;
  margin: 45px 16px 0 0;
  padding-right: 0 !important;
} */

.activity-report-card {
  border: 1px solid black;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 480px;
  cursor: pointer;
  position: relative;
  user-select: none;
  margin: 45px 16px 0 0;
  padding: 30px 14px 0 14px;
}

.activity-report-card-header {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.activity-report-card-title {
  color: #D84A4A;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0;
  min-height: 3.6rem;
}

.activity-report-card-img {
  width: calc(100% + 46px);
  margin: 0 -14px;
  height: 200px;
  object-fit: cover;
}

.activity-report-card-header .file-badge {
  font-size: 1rem;
  display: inline-block;
  font-family: 'Space Grotesk';
  width: fit-content;
  line-height: 2.4rem;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Crect width='8' height='8' fill='%23F2F2F2'/%3E%3C/svg%3E");
  background-size: 10px 10px;
  padding-right: 37px;
  margin-left: -14px;
}

.activity-report-card-footer {
  padding-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.activity-report-card .language-code {
  font-size: 1rem;
}

.activity-report-card .arrow-icon {
  width: 20px;
  transition: transform 0.2s ease;
}

.activity-report-card:hover .arrow-icon {
  transform: translateX(4px);
}

.content-block>div:nth-child(7n+1).activity-report-card {
  grid-column: 1/3;
}

.content-block>div:nth-child(7n+2).activity-report-card {
  grid-column: 1/3;
}

.content-block>div:nth-child(7n+3).activity-report-card {
  grid-column: 4/7;
}

.content-block>div:nth-child(7n+4).activity-report-card {
  grid-column: 2/5;
}

.content-block>div:nth-child(7n+5).activity-report-card {
  grid-column: 5/8;
}

.content-block>div:nth-child(7n+6).activity-report-card {
  grid-column: 1/3;
}

.content-block>div:nth-child(7n).activity-report-card {
  grid-column: 4/7;
}

.substack-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1rem 1fr 1fr;
  margin-top: 2rem;
}

.substack-signup-text {
  grid-column: 2 / 6 !important;
  padding-left: 0.7rem;
}

.substack-signup {
  border: 0;
  background: transparent;
  grid-column: 2 / 6;
  margin-top: -1rem;
}