/* --------------------------------------------------------------------------
   1) Imports & Root Variables
-------------------------------------------------------------------------- */
@import url("https://use.typekit.net/dfl3hel.css");

:root {
  --bg-color: #202020;
  --text-color: #d9d9d9;
  --accent-color: #cfaf22;
  --link-color: #4abfb7;
  --link-hover-color: #e5c100;
  --red-text: rgba(255, 87, 87, 0.65);

  /* 16.5px = 1rem */
  --base-font-size: 1rem;
  --base-line-height: 1.3;
  --heading-font-size: 2.28rem;
  --subheading-font-size: 1.5rem;
  --small-font-size: 1rem;
}

/* --------------------------------------------------------------------------
   2) Basic Reset & Global Styles
-------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "neuzeit-grotesk", sans-serif;
  font-size: var(--base-font-size);
  line-height: var(--base-line-height);
  scroll-behavior: smooth;
  word-spacing: -0.09em;
  margin: 0;
  padding: 0;
}
/* 
body {
  line-height: 1.4;
} */

button {
  border-width: 0;
  border-style: none;
}

::part(input) {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.wide-em-dash {
  display: inline-block;
  vertical-align: middle;
  width: 1em;
  height: 0.1em;
  margin: 0 0.08em;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.middle-container {
  position: absolute;
  top: 110px;
  bottom: 65px;
  overflow-y: scroll;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  max-width: 40rem;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  line-height: 1.3;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.middle-container::-webkit-scrollbar {
  display: none;
}

/* --------------------------------------------------------------------------
   3) Links & Shared Elements
-------------------------------------------------------------------------- */
h1,
h2 {
  color: var(--link-hover-color);
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: none;
}

nav ul li a.active-text-link {
  color: var(--link-hover-color);
  pointer-events: none;
  text-decoration: none;
}

.container {
  max-width: 40.8rem;
  width: 100%;
  margin: 0 auto;
  /* padding: 1rem; */
  line-height: 1.3;
}

.custom-select-wrapper {
  position: relative;
  display: inline-block;
  margin-top: 0.5rem;
  width: 7.5rem; /* already in rem (7.5rem ≈ 123.75px if needed) */
}

.custom-select-wrapper::after {
  content: "▼";
  font-size: 0.75rem; /* 12px ≈ 0.73rem, using 0.75rem as given */
  color: var(--link-color);
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.custom-select-wrapper select {
  color: #e5c100;
}

.custom-select-wrapper:hover::after {
  color: #e5c100;
}

.custom-select {
  width: 100%;
  height: 2rem;
  background: #2d2d2d;
  color: #4abfb7;
  font-family: "neuzeit-grotesk", sans-serif;
  font-size: 0.75rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: background 0.3s, color 0.3s;
  padding: 0.3rem 2.5rem 0.3rem 0.5rem;
  border: 0.0625rem solid #2d2d2d; /* 1px ≈ 0.06rem */
}

.custom-select:hover {
  background: #333;
  color: #e5c100;
}

select.custom-select:focus {
  outline: none;
}

.caveat-blurb {
  font-size: 0.7rem;
  color: rgba(217, 217, 217, 0.2);
  text-align: justify;
  max-width: 39.39rem; /* 650px ≈ 39.39rem */
  margin-top: 1rem;
  margin-right: 0;
  margin-bottom: 0.01rem;
  margin-left: 0;
  padding-bottom: 0;
}

.caveat-blurb:hover {
  color: rgba(217, 217, 217, 0.4);
  transition: color 0.2s ease-in-out;
}

/* --------------------------------------------------------------------------
   4) Header & Navigation
-------------------------------------------------------------------------- */
/* Scroll Indicator - Gradient Fade Below Header */
#scroll-indicator-top {
  position: fixed;
  top: 6.36rem; /* 105px ≈ 6.36rem */
  left: 0;
  width: 100%;
  height: 3.03rem; /* 50px ≈ 3.03rem */
  background: linear-gradient(
    to bottom,
    rgba(32, 32, 32, 0.65),
    rgba(32, 32, 32, 0)
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.85s ease-in-out;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  margin: 0 auto;
  padding: 1rem;
  width: 100%;
  height: 6.36rem;
  background-color: #202020;
  z-index: 999;
  border-bottom: 0.06rem solid #262626;
}

.top-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.site-title {
  font-size: var(--heading-font-size);
  color: var(--accent-color);
  font-weight: bold;
  line-height: 80%;
}

a.site-title:hover {
  color: rgba(255, 87, 87, 0.65);
}

.site-subtitle {
  font-size: small;
  color: #ffffff;
  margin-bottom: 0.61rem; /* 10px ≈ 0.61rem */
  text-align: center;
  width: auto;
  white-space: nowrap;
  word-spacing: -0.01em;
}

.title-subtitle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Desktop (text-based) nav */
.nav-text {
  text-align: center;
}

.nav-text ul {
  display: inline-flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  justify-content: center;
}

nav a {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

/* Mobile nav (icons + burger) */
.nav-mobile-group {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.nav-icons {
  position: relative;
  width: 10.91rem; /* 180px ≈ 10.91rem */
  height: 1.94rem; /* 32px ≈ 1.94rem */
  overflow: hidden;
}

.nav-icons ul {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  width: 100%;
  height: 100%;
}

.nav-icons img {
  width: 1.82rem; /* 30px ≈ 1.82rem */
  height: 1.82rem; /* 30px ≈ 1.82rem */
  object-fit: contain;
}

.nav-toggle {
  background: none;
  color: var(--text-color);
  padding-top: 0.5rem;
  padding-right: 0;
  padding-bottom: 0.5rem;
  padding-left: 0;
  cursor: pointer;
  display: none;
}

.burger-icon {
  width: 2rem; /* 33px ≈ 2rem */
  height: 1.52rem; /* 25px ≈ 1.52rem */
  object-fit: contain;
  transition: opacity 0.3s ease-in-out;
}

.burger-icon.fading-out {
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

/* Icon positions for open state */
.nav-icons ul li {
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0;
}

.nav-open .icon-about {
  right: 8.12rem; /* 134px ≈ 8.12rem */
  opacity: 1;
}

.nav-open .icon-archive {
  right: 5.45rem; /* 90px ≈ 5.45rem */
  opacity: 1;
}

.nav-open .icon-mail {
  right: 2.67rem; /* 44px ≈ 2.67rem */
  opacity: 1;
}

.nav-open .icon-search {
  right: 0;
  opacity: 1;
}

/* Animation triggers */
.nav-open.nav-animate .icon-about {
  animation: about-slide-open 0.15s ease-out forwards;
  animation-delay: 0s;
  animation-fill-mode: backwards;
}

.nav-open.nav-animate .icon-archive {
  animation: archive-slide-open 0.1s ease-out forwards;
  animation-delay: 0.05s;
  animation-fill-mode: backwards;
}

.nav-open.nav-animate .icon-mail {
  animation: mail-slide-open 0.05s ease-out forwards;
  animation-delay: 0.1s;
  animation-fill-mode: backwards;
}

.nav-open.nav-animate .icon-search {
  animation: search-slide-open 0.01s ease-out forwards;
  animation-delay: 0.15s;
  animation-fill-mode: backwards;
}

.nav-closing.nav-animate .icon-about {
  animation: about-slide-close 0.15s ease-out forwards;
  animation-delay: 0.05s;
  animation-fill-mode: both;
}

.nav-closing.nav-animate .icon-archive {
  animation: archive-slide-close 0.1s ease-out forwards;
  animation-delay: 0.05s;
  animation-fill-mode: both;
}

.nav-closing.nav-animate .icon-mail {
  animation: mail-slide-close 0.05s ease-out forwards;
  animation-delay: 0.05s;
  animation-fill-mode: both;
}

.nav-closing.nav-animate .icon-search {
  animation: search-slide-close 0.05s ease-out forwards;
  animation-delay: 0s;
  animation-fill-mode: both;
}

/* --------------------------------------------------------------------------
   5) Keyframes for Mobile Nav
-------------------------------------------------------------------------- */
@keyframes about-slide-open {
  0% {
    right: 0;
    opacity: 0;
  }
  1% {
    right: 0.06rem; /* 1px ≈ 0.06rem */
    opacity: 1;
  }
  100% {
    right: 8.12rem; /* 134px ≈ 8.12rem */
    opacity: 1;
  }
}

@keyframes about-slide-close {
  0% {
    right: 8.12rem; /* 134px ≈ 8.12rem */
    opacity: 1;
  }
  90% {
    right: 0;
    opacity: 0.7;
  }
  100% {
    right: 0;
    opacity: 0;
  }
}

@keyframes archive-slide-open {
  0% {
    right: 0;
    opacity: 0;
  }
  1% {
    right: 0.06rem; /* 1px ≈ 0.06rem */
    opacity: 1;
  }
  100% {
    right: 5.45rem; /* 90px ≈ 5.45rem */
    opacity: 1;
  }
}

@keyframes archive-slide-close {
  0% {
    right: 5.45rem; /* 90px ≈ 5.45rem */
    opacity: 1;
  }
  90% {
    right: 0;
    opacity: 0.7;
  }
  100% {
    right: 0;
    opacity: 0;
  }
}

@keyframes mail-slide-open {
  0% {
    right: 0;
    opacity: 0;
  }
  1% {
    right: 0.06rem; /* 1px ≈ 0.06rem */
    opacity: 1;
  }
  100% {
    right: 2.67rem; /* 44px ≈ 2.67rem */
    opacity: 1;
  }
}

@keyframes mail-slide-close {
  0% {
    right: 2.67rem; /* 44px ≈ 2.67rem */
    opacity: 1;
  }
  90% {
    right: 0;
    opacity: 0.7;
  }
  100% {
    right: 0;
    opacity: 0;
  }
}

@keyframes search-slide-open {
  0% {
    right: 0;
    opacity: 0;
  }
  1% {
    right: 0.06rem; /* 1px ≈ 0.06rem */
    opacity: 1;
  }
  100% {
    right: 0;
    opacity: 1;
  }
}

@keyframes search-slide-close {
  0% {
    right: 0;
    opacity: 1;
  }
  100% {
    right: 0;
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   6) Responsive Breakpoints
-------------------------------------------------------------------------- */
@media (min-width: 30.36rem) {
  /* 501px ≈ 30.36rem */
  .nav-text {
    display: block !important;
  }
  .nav-mobile-group {
    display: none !important;
  }
}

@media (max-width: 30.3rem) {
  /* 500px ≈ 30.30rem */
  .top-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .title-subtitle-wrap {
    align-items: flex-start;
  }
  .nav-text {
    display: none !important;
  }
  .nav-mobile-group {
    display: flex !important;
    margin-bottom: 1.5rem;
    gap: 0.7rem;
  }
  .nav-toggle {
    display: block !important;
    margin-left: auto;
  }
}

/* --------------------------------------------------------------------------
   7) Headings, Sections, & Misc
-------------------------------------------------------------------------- */
h3 {
  color: var(--accent-color);
}

.archived-type {
  font-size: 0.8em;
  color: #777;
  pointer-events: none;
  position: relative;
  top: 0.4rem;
}

.short-bio {
  text-align: justify;
}

.blog-post {
  margin-bottom: 2rem;
}

.blog-post h2 {
  margin-bottom: 0.5rem;
}

.post-date {
  display: block;
  font-size: 0.8rem;
  color: #777;
  position: relative;
  bottom: 0.175rem;
}

#about-blurb {
  position: absolute;
  top: 110px;
  bottom: 65px;
  text-align: justify;
  max-width: 40rem;
  padding-top: 0.5rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
  padding-left: 1rem;
}

.section-break {
  margin-bottom: 0.78rem;
  line-height: 1.35em;
}

/* Basic styling for the blog feed and pop-up modal */
.blog-post-preview {
  border-bottom: 0.06rem solid #444; /* 1px ≈ 0.06rem */
  padding: 1rem 0;
  cursor: pointer;
}

.blog-post-preview h2 {
  margin: 0;
  font-size: 1.3rem;
  color: rgba(255, 87, 87, 0.65);
}
.blog-post-preview p {
  margin-top: 0.4rem;
  font-size: 0.85rem; /* 14px ≈ 0.85rem */
  color: #aaa;
}

.blog-feed-header-wrapper {
  position: sticky;
  top: 0;
  /* top: 6.67rem; */
  background-color: var(--bg-color);
  z-index: 10;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-feed-header-wrapper::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 1rem; /* 20px ≈ 1.21rem */
  background: #202020;
  z-index: 3;
}

.blog-feed-header-wrapper.stuck {
  box-shadow: 0 5px 10px -8px rgba(0, 0, 0, 0.5);
}

#sticky-sentinel {
  visibility: hidden;
}

/* Pop-up modal styling */
#postModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}
#postModal .modal-content {
  background: #202020;
  padding: 2rem;
  max-width: 48.48rem; /* 800px ≈ 48.48rem */
  width: 90%;
  max-height: 80vh;
  min-height: 20rem;
  overflow-y: auto;
  color: #d9d9d9;
  position: relative;
}
#postModal .close-btn {
  position: absolute;
  top: 0.61rem; /* 10px ≈ 0.61rem */
  right: 0.61rem; /* 10px ≈ 0.61rem */
  font-size: 1.5rem;
  color: #e5c100;
  cursor: pointer;
}

/* #modalPostContent {
  max-height: 80vh;
  overflow-y: auto;
} */

/* --------------------------------------------------------------------------
   8) Record Page Layout
-------------------------------------------------------------------------- */
.record-wrapper {
  width: 100%;
  margin: 120px 0 130px 0;
  background-color: var(--bg-color);
}

.record-page {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 2rem;
}

.record-title h2 {
  text-align: left;
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-top: 1rem;
}

.record-content {
  display: grid;
  grid-template-columns: 1fr 180px; /* main column + fixed sidebar width */
  column-gap: 1rem;
  align-items: start; /* top edges flush */
}

.media-frame {
  width: 100%;
  max-width: 1100px;
  height: 660px;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
}

/* Make the main media frame span the left column; sidebar panels auto-stack on the right */
.record-content .media-frame {
  grid-column: 1 / 2;
  grid-row: 1 / span 2;
}

/* Playlist panel shares sidebar styling and stacks above Related Works */
.playlist-panel.related-works-panel {
  margin-bottom: 1rem; /* space between playlist and related */
  height: auto; /* let content define height */
  max-height: 660px; /* never exceed media height */
  overflow-y: auto;
}

/* Smooth expand/collapse helpers */
.collapsible {
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.28s ease;
  will-change: max-height, opacity;
}
.collapsible.is-collapsed {
  max-height: 0 !important;
  opacity: 0;
}
.collapsible.is-expanded {
  opacity: 1;
}

.media-frame.audio-mode {
  position: relative;
  background-color: #262525;
  flex-direction: column;
  justify-content: flex-end;
}

.media-frame.video-mode {
  background-color: #333;
}

.media-frame.no-media {
  background-color: #333;
}

.media-frame.pdf-mode {
  background-color: #333;
}

.media-frame.single-image-mode {
  background-color: #2a2a2a;
}

.media-frame.gallery-mode {
  background-color: #333;
}

.media-frame-gallery-mode {
  overflow: scroll;
}

.media-placeholder {
  color: #888;
  text-align: center;
}

.wavesurfer-waveform {
  background-color: #262525;
  border-radius: 7px;
  /* padding: 0.5rem; */
  max-width: 940px;
  width: 100%;
  height: 495px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wavesurfer ::part(minimap) {
  position: relative;
  top: 10px;
}

#waveform {
  position: relative;
  bottom: 8px;
  width: 100%;
  max-width: 940px;
  height: 450px;
  border-bottom: 1px solid #3b3434;
}

.hints-header {
  color: rgb(69, 113, 166);
  font-size: 15px;
}

.create-regions {
  color: #a19f94;
  font-size: 15px;
  margin-left: 4px;
  opacity: 0.7;
}

.click-to-play {
  color: #a19f94;
  font-size: 15px;
  margin-left: 4px;
  opacity: 0.7;
}

.dbl-click {
  color: #a19f94;
  font-size: 15px;
  margin-left: 4px;
  opacity: 0.7;
}

.drag-to-move {
  color: #a19f94;
  font-size: 15px;
  margin-left: 4px;
  opacity: 0.7;
}

.resize {
  color: #a19f94;
  font-size: 15px;
  margin-left: 4px;
  opacity: 0.7;
}

.region-hints {
  position: relative;
  display: flex;
  justify-content: center;
  bottom: 10px;
  margin-left: 11px;
}

.tips-row {
  display: flex;
  list-style: none;
  padding: 0;
  /* margin-left: 165px; */
  opacity: 0.9;
}

/* If the region’s container has .active, show the tips */
.region.active {
  display: block;
}

/* Show the tips on hover, so they’re not always cluttering: */
.region:hover {
  display: block;
}

.top-row {
  height: 1px;
  position: relative;
}
canvas.visualizer {
  width: 100%;
  height: 100%;
  /* etc. */
}

/* Related Works Panel */
.related-works-panel {
  width: 180px;
  height: 660px;
  background-color: #262525;
  padding: 1rem;
  font-size: 0.85rem;
  color: #ccc;
  overflow-y: auto;
  border-radius: 7px;
}

.related-works-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-works-panel li {
  margin-bottom: 1.5rem;
  text-align: center;
}

.related-works-panel img {
  display: block;
  margin: 0 auto 0.5rem;
  border: 1px solid #444;
  max-width: 100%;
  height: auto;
}

.related-works-panel p {
  margin: 0;
  line-height: 1.2;
  color: #bbb;
}

/* Metadata Panel (3-column optional) */
.metadata-panel.three-column {
  display: flex;
  gap: 2.5rem;
  padding-top: 0.7rem;
  border-top: 1px solid #444;
  font-size: 0.8rem;
  color: #ccc;
}

.metadata-panel.three-column .column {
  flex: 1;
}

.metadata-panel.three-column .column dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.05rem 0.1rem;
  margin-bottom: 1rem;
}

.metadata-panel.three-column dt,
.metadata-panel.three-column dd {
  font-weight: normal;
  margin: 0;
}

.metadata-panel.three-column dt {
  color: #a19f94;
}

.metadata-panel.three-column dd {
  color: #d9e1e1;
}

.ql-editor {
  padding: 0 !important;
  margin: 0 !important;
}

.extended-notes .ql-editor {
  /* margin-top: 0.5rem; */
  font-size: 1rem !important;
  color: #d9e1e1;
  column-fill: balance;
  text-align: justify;
}

.extended-notes.layout-three .ql-editor {
  column-count: 3;
  column-gap: 2.5rem;
}
.extended-notes.layout-two .ql-editor {
  column-count: 2;
  column-gap: 1.5rem;
}
.extended-notes.layout-single .ql-editor {
  column-count: 1;
}

@media (max-width: 1200px) {
  .record-page {
    padding: 0 1rem;
  }

  .record-content {
    display: block; /* collapse to a single column on narrow viewports */
  }

  .media-frame {
    width: 100%;
    height: auto;
  }

  .related-works-panel {
    width: 100%;
    height: auto;
    margin-top: 1rem;
    border-left: none;
    border-top: 1px solid #333;
    overflow-y: auto;
  }
}

/* --------------------------------------------------------------------------
   9) Footer (Pinned)
-------------------------------------------------------------------------- */
#scroll-indicator {
  position: fixed;
  bottom: 3.94rem; /* 65px ≈ 3.94rem */
  width: 100%;
  height: 4.85rem; /* 80px ≈ 4.85rem */
  background: linear-gradient(
    to top,
    rgba(32, 32, 32, 0.65),
    rgba(32, 32, 32, 0)
  );
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3.94rem; /* 65px ≈ 3.94rem */
  background-color: #202020;
  z-index: 999;
  border-top: 0.06rem solid #262626; /* 1px ≈ 0.06rem */
  text-align: center;
  color: #444;
}

.footer-container {
  max-width: 39.39rem; /* 650px ≈ 39.39rem */
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  line-height: 1;
}

.site-footer .footer-container {
  max-width: 39.39rem; /* 650px ≈ 39.39rem */
  margin: 0 auto;
  padding-top: 0.1rem;
}

.logo-section-end {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Merged Inline Styles --- */

/* .main--inner {
  margin: 0;
}

.container--small-padding {
  padding-top: 0.5rem;
  padding-inline: 0.3rem;
} */

#caveat {
  padding-bottom: 0.61rem; /* 10px ≈ 0.61rem */
}

.short-bio-hr {
  border: 0.06rem solid rgb(50, 50, 50); /* 1px ≈ 0.06rem */
  width: 100%;
}

#sticky-sentinel {
  height: 0.06rem; /* 1px ≈ 0.06rem */
}

.blog-post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.archive-entry-link {
  font-size: 0.8em;
  text-decoration: none;
}

#flanorama {
  color: rgba(255, 87, 87, 0.65);
}

.about-asterisk {
  color: rgb(130, 130, 130);
}

#aboutAsterisk {
  color: var(--text-color);
  font-size: 1.21rem; /* 20px ≈ 1.21rem */
}

/* Header Adjustments */
.site-subtitle a[href^="mailto:"] {
  color: #d8e9e9;
  text-decoration: none;
}

.site-subtitle a[href^="mailto:"]:hover {
  color: rgba(255, 87, 87, 0.65);
}

/* Footer Adjustments */
.admin-archive-link {
  cursor: default;
}

.logo-section-end img {
  width: 2.06rem; /* 34px ≈ 2.06rem */
  height: 2.06rem; /* 34px ≈ 2.06rem */
  margin-top: 0.48rem; /* 8px ≈ 0.48rem */
}

.bulk-grouping-modal {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  max-width: 40%;
  background: rgba(32, 32, 32, 0.8);
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.3;
}

/* The collapsible overlay container for multiple archives */
.archive-overlay-panel {
  position: absolute;
  top: 1.2em;
  right: 0;
  width: 250px;
  background: #2d2d2d;
  opacity: 0.9;
  border: 1px solid #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  padding: 0.5em;
  z-index: 9999;
  display: none;
}

.archive-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8em;
  /* margin-bottom: 0.4em; */
}

.archive-overlay-close {
  cursor: pointer;
  color: #999;
}

.archive-overlay-body {
  max-height: 180px;
  overflow-y: auto;
}

.archive-group {
  margin-bottom: 0.5em;
}

.archive-group-header {
  font-size: 0.8em;
}

.archive-overlay-toggle {
  cursor: pointer;
  margin-left: 0.2em;
  color: var(--link-color);
  font-size: 0.7rem;
  top: 0.1em;
  position: relative;
}

.archive-summary-label {
  font-size: 0.8em;
  color: #777;
  position: relative;
}

.archive-link-menu-item {
  height: 1rem;
}

/* ========== HOMEPAGE CAROUSEL STYLES ========== */
.homepage-carousel-wrapper {
  position: relative;
  /* width: 100%;
  max-width: 32rem; */
  margin: 1rem auto 0rem auto;
  /* center horizontally */
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.carousel-viewport {
  position: relative;
  max-width: 36rem;
  height: 12.5rem;
  overflow: hidden;
  background: #1e1e1e;
  border: 1px solid #444;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  max-width: 128rem;
  height: 12.5rem;
  transition: transform 0.5s ease;
}

.carousel-slide {
  width: 100%;
  height: 12.5rem;
  flex: 0 0 100%;
  position: relative;
}

.carousel-slide .banner-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.banner-header .slot-label {
  font-size: 1rem;
  color: var(--link-hover-color);
  text-transform: uppercase;
}

.roll-dice {
  font-size: 1.3rem;
  color: var(--link-color);
  cursor: pointer;
  line-height: 1;
  position: relative;
  bottom: 1.5px;
}

.roll-dice:hover {
  color: var(--link-hover-color);
}

.carousel-slide .carousel-banner {
  width: 100%;
  height: 100%;
  color: #d9d9d9;
  /* We’ll use flex in row direction now for a horizontal design: */
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 3.5rem;
  box-sizing: border-box;
}

.banner-thumb-and-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 100%;
  /* gap: 1rem; */
  position: relative;
  margin: 0 2rem;
  justify-content: space-between;
}

.thumb-link {
  display: inline-block;
  border: 1px solid #555;
  padding: 0;
  background: none;
  max-width: 300px;
  max-height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.thumb-link img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.banner-right-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
}

.slot-label-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  width: 100%;
  gap: 0.5rem;
  margin-bottom: 5.5rem;
}

.slot-label {
  font-size: 1.2rem;
  color: var(--link-hover-color);
  text-transform: uppercase;
  font-weight: 600;
}

.roll-dice {
  font-size: 1.3rem;
  color: var(--link-color);
  cursor: pointer;
  line-height: 1;
  position: relative;
  top: 0.001rem;
}

.roll-dice:hover {
  color: var(--red-text);
}

/* The title link on the right side.
   We'll style it to stand out a bit more. */
.title-link {
  text-decoration: none;
  margin-top: 0.4rem;
  text-align: right;
}
.title-link:hover .entry-title {
  color: var(--link-hover-color);
}

.entry-title {
  font-size: 1rem;
  color: var(--link-color);
  margin: 0;
  text-align: right;
}

/* Teaser & media type on one line */
.teaser-and-media-type {
  font-size: 0.75rem;
  color: #ccc;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.2rem;
  /* margin-bottom: 0.6rem; */
}
.meta-sep {
  color: #777; /* or #666 if you want a subtle separator color */
}

.media-type {
  font-size: 0.75rem;
}

/* ARROWS */
.carousel-arrow {
  position: absolute;
  top: 46.5%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0);
  color: #a0a0a0;
  border: none;
  font-size: 1.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-left {
  left: 0.8rem;
}
.arrow-right {
  right: 0.8rem;
  top: 5.48rem;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0);
  color: var(--link-hover-color);
}

/* DOT NAV */
.carousel-dots {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.carousel-dots .dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #444;
  cursor: pointer;
  position: relative;
}

.carousel-dots .dot-1 {
  width: 2.5rem; /* wider, because we place a progress bar inside */
  border-radius: 3px;
  background: #444;
}

.dot .progress-bar {
  display: none; /* used only in the center dot */
}

/* active state */
.dot.active-dot {
  background: #555;
}

/* center dot as progress bar */
.dot-1.active-dot {
  background: #333;
  /* show the nested .progress-bar inside */
}

.dot-1 .progress-bar {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #666;
  transition: width 0.1s linear; /* subtle smoothing */
  border-radius: 3px;
}
