body {
  font-family: Charter;
}

.header-wrapper {
    /* max-width: 1200px; */
    /* background-color: #65a0cf; */

    /* background: linear-gradient(127deg, #265073 0%, #596FB7 45%, #C6CF9B 70%, rgb(244,234,203) 100%); */
    /* background: linear-gradient(127deg, #265073 0%, #596FB7 45%, #FEAE6F 75%, rgb(239, 212, 133) 100%); */
    /* background: linear-gradient(127deg, #254B46ff 0%, rgb(60, 155, 142) 45%, #FEAE6F 75%, rgb(239, 212, 133) 100%); */
    /* body { */
    background: url('../img/preview8.png') center center fixed;

}

.header-container {
  /* color: #FFC436; */
  color: #FEAE6F;
  text-align: center; /* Center content on small screens */
  padding: 20px; /* Reduced padding for small screens */
  opacity: 1.0;
  z-index: 1000;
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
}


.header-content h1 {
  /* color: #f88228; */
  color: #f8ba29;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

.header-content h2 {
  /* color: #FFD28F; */
  color: #ecb767;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

.header-container p {
    /* font-size: 1.06rem; */
    font-size: 1.2rem;
}

@media (max-width: 768px) {
  .header-container {
    padding: 16px;
    padding-top: 32px;
  }

  .header-content h1 {
    font-size: 2em;
  }

  .header-container p {
    font-size: 1.04rem;
  }

  .header-image {
    /* 80% */
    max-width: 90%;
    /* center */
    margin-left: auto;
    margin-right: auto;
  }
}

.teaser-video video {
  height: auto; /* Maintain the aspect ratio of the image */
  display: block; /* Prevent inline spacing issues */
  max-width: 100%;
}

.header-image img {
  max-width: 100%; /* Ensure the image is never more than 100% of its container */
  height: auto; /* Maintain the aspect ratio of the image */
  display: block; /* Prevent inline spacing issues */
  margin: 0 auto 20px; /* Center the image horizontally and add margin below */
}

.button-container {
  margin-top: 20px; /* Add margin above the buttons */
  margin-bottom: 20px; /* Add margin below the buttons */
}

.button-container a.button {
  display: inline-block; /* Make buttons inline */
  margin: 10px; /* Space around buttons */
  padding: 10px 20px; /* Increase tap area for touch screens */
}

.button-container a.button {
  background-color: #FFF0CE; /* Yellow background */
  color: #000; /* Black text */
  border: 2px solid #ffc107; /* Orange border */
  border-radius: 12px; /* Rounded borders */
  padding: 10px 20px; /* Top and bottom padding, left and right padding */
  margin: 2px; /* Space between the buttons */
  text-decoration: none; /* Remove the underline from links */
  display: inline-block; /* Display links as inline blocks */
  font-weight: bold; /* Make the text bold */
  transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effect */
}

.button-container a.button:hover {
  background-color: #EAB682; /* Darker yellow background on hover */
  color: #fff; /* White text on hover */
}

/* Styles for larger screens using a media query */
@media (min-width: 600px) {
  .header-container {
    display: flex; /* Use flexbox for positioning on larger screens */
    justify-content: space-between; /* Space between the content and image */
    align-items: center; /* Align items vertically */
    padding: 50px 50px; /* Increase padding for larger screens */
  }

  .header-content {
    max-width: calc(50% - 20px); /* Adjust width to include margin */
    text-align: left; /* Align text to the left for larger screens */
    margin-right: 10px; /* Add margin to the right of the header content */
  }

  .header-content h1 {
    font-size: 3.3em; /* Increase font size for larger screens */
  }

  .header-content h2 {
    margin-top: -0.75em; /* Reduce space between headers */
    font-size: 2.3em; /* Increase font size for larger screens */
  }

  .teaser-video {
    width: 100%; /* Set width to 100% */
    margin-bottom: 2em;
  }

  .header-image {
    max-width: calc(50% - 20px); /* Adjust width to include margin */
  }

  .header-image img {
    max-width: 90%; /* Image should be responsive within the container */
    height: auto; /* Maintain the aspect ratio */
  }
}


.byline {
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.byline-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.authors {
  font-size: 1.3rem;
  line-height: 2;
  margin-bottom: 1rem;
}

.author-link {
  color: #05496d;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: color 0.2s;
  white-space: nowrap;
}

.author-link:hover {
  color: #007bff;
  text-decoration: underline;
  border-bottom: 1px solid #007bff !important;
  }

.affiliations {
  font-size: 1.3rem;
  color: #3c494e;
  margin: 1rem 0;
  }

.affiliation-link {
  color: #666;
}

.author-notes {
  font-size: 0.9rem;
  color: #666;
}

.author-note {
  display: inline-block;
  margin: 0 0.5rem;
}

sup {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
  top: -0.5em;
}


d-article {
  contain: none;
  position: relative;
}

d-article d-contents {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 220px;
  max-height: calc(100vh - 40px);
  z-index: 1000;
  overflow-y: auto;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  padding: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateY(0);
  opacity: 0;
  visibility: hidden;
}


d-article d-contents nav {
  display: block;
  padding: 16px;
}

d-article d-contents nav h4 {
  margin-top: 0;
  margin-bottom: 0.6em;
}

d-article d-contents nav div {
  color: rgba(91, 184, 73, 0.8);
  font-weight: bold;
}

d-article d-contents nav .nav-section {
  margin-bottom: 6px;
  margin-top: 12px;
}

d-article d-contents nav .nav-section:first-of-type {
  margin-top: 0;
}

d-article d-contents nav .nav-section a {
  font-weight: 700;
  font-size: 13px;
  color: #1e293b;
  padding: 6px 10px;
  display: block;
  border-radius: 6px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  line-height: 1.2;
}

d-article d-contents nav .nav-section a:hover {
  background-color: #f1f5f9;
  color: #1e293b;
  transform: translateX(2px);
  text-decoration: none;
}

d-article d-contents nav .nav-subsections {
  list-style: none;
  padding: 0;
  margin: 0 0 4px 0;
}

d-article d-contents nav .nav-subsections li {
  margin-bottom: 2px;
}

d-article d-contents nav .nav-subsections a {
  font-weight: 500;
  font-size: 12px;
  color: #64748b;
  padding: 4px 10px 4px 20px;
  display: block;
  border-radius: 4px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  line-height: 1.2;
}

d-article d-contents nav .nav-subsections a:hover {
  background-color: #f8fafc;
  color: #475569;
  transform: translateX(2px);
  text-decoration: none;
}

d-article d-contents nav a {
  color: rgba(0, 0, 0, 0.8);
  border-bottom: none;
  text-decoration: none;
}

d-article d-contents li {
  list-style-type: none;
}

d-article d-contents ul {
  padding-left: 1em;
}

d-article d-contents nav ul li {
  margin-bottom: 0.25em;
}

d-article d-contents nav a:hover {
  text-decoration: underline solid rgba(0, 0, 0, 0.6);
}

d-article d-contents nav ul {
  margin-top: 0;
  margin-bottom: 3px;
}

d-article d-contents nav > div {
  display: block;
  outline: none;
  margin-bottom: 0.5em;
}

d-article d-contents nav > div > a {
  font-size: 13px;
  font-weight: 600;
}

d-article d-contents nav > div > a:hover,
d-article d-contents nav > ul > li > a:hover {
  text-decoration: none;
}

/* Responsive behavior for navigation */
@media (max-width: 1400px) {
  d-article d-contents {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
  }
    
}

@media (max-width: 1200px) {
    d-article d-contents {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

.active-nav-item {
  color: #0d6efd; /* Change as per your preference */
}

.shaded-figure {
  background-color: hsl(0, 0%, 97%);
  border-top: 1px solid hsla(0, 0%, 0%, 0.1);
  border-bottom: 1px solid hsla(0, 0%, 0%, 0.1);
  padding: 30px 0;
}

.pointer {
  position: absolute;
  width: 26px;
  height: 26px;
  top: 26px;
  left: -48px;
}

.sidebar {
  position: sticky;
}

d-article section{
  margin: 0 !important;
}


.video-container {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  height: 0; /* Collapse the container to the aspect ratio */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.preview-container {
  display: flex;
  justify-content: left;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 20px;
}

.preview {
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  opacity: 0.5; /* 50% transparent */
  height: 50px; /* Fixed height */
  width: auto; /* Auto width to maintain aspect ratio */
  margin-right: 10px;
  margin-left: 10px;
}

div .preview-video-active,
.preview:hover {
  opacity: 1.0; /* Fully opaque on hover */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Shadow effect on hover */
}


/* blockquote {
  border-left: 4px solid #ccc;
  margin: 0.5em auto;
  padding: 0.5em 10px;
  color: #666;
  font-style: italic;
  width: 80%;
} */

/* blockquote:before {
  color: #ccc;
  content: open-quote;
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
} */

blockquote.storytext {
  border-left: 6px solid #4a90e2; /* Brighter border color */
  background-color: #f9f9f9;      /* Subtle background */
  margin: 0px auto;
  padding: 1em 10px;
  color: #333;                    /* Darker font color */
  font-style: italic;
  font-weight: bold;              /* Bolder font */
  width: 85%;
  box-shadow: 2px 2px 8px #ccc;   /* Box shadow */
  padding-left: 2em;
  font-style: italic;
  color: rgba(0, 0, 0, 0.6);
  font-size: 15px;
}

blockquote.storytext:before {
  color: #4a90e2;                 /* Matching the border color */
  content: open-quote;
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
}

.fancybreak {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #333, transparent);
  margin: 0.8em auto;
}


#image-text-container {
  display: flex;
  flex-direction: column;
  /* align-items: center; */
}

.image-review-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-box {
  width: 50%; /* Adjust the width as needed */
  margin-left: 0%; /* Space between image and text box */
  height: 100%; /* Make the text box the same height as the image */
}

.button-bar button {
  background-color: #88AB8E; /* Green background */
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 11px;
  margin-top: 0px;  /* Keeps the original top margin */
  margin-bottom: 2em;
  margin-left: 5px;  /* Increases the left margin */
  margin-right: 5px;  /* Increases the right margin */
  cursor: pointer;
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 4px #999; /* Subtle shadow */
  transition: all 0.3s ease; /* Smooth transition for hover effect */
}

div .active-button,
.button-bar button:hover {
  background-color: #45a049; /* Slightly darker shade on hover */
  box-shadow: 0 6px #666; /* Change in shadow */
  transform: translateY(-2px); /* Slight raise */
}

.interactive-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 50px;
}

.llmul {
  text-decoration-color: royalblue;
}

.geoul {
  text-decoration-color: ForestGreen;
}

.cvul {
  text-decoration-color: #FF43A4;  
}

.colul {
  text-decoration-color: #FFAE42;
}

.character-card-img {
  width: 85%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}


/* collapsible code */
.collapsible {
  background-color: hsla(206, 95%, 20%, 0.2);
  cursor: pointer;
  padding: 1em;
  border: none;
  text-align: left;
  outline: none;
}

.active, .collapsible:hover {
  transition: max-height 0.2s ease-out;
  /* background-color: #acc2c2; */
}

.collapsible {
  background-color: hsla(206, 95%, 20%, 0.2);
  cursor: pointer;
  padding: 1em;
  border: none;
  text-align: left;
  outline: none;
}

.active, .collapsible:hover {
  transition: max-height 0.2s ease-out;
}

.collapsible {
  display: flex;
  justify-content: space-between;
  align-content: center;
  border-radius: 4px;
}

.collapsible.active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.collapsible .collapsible-indicator::after {
  content: "+"
}

.collapsible.active .collapsible-indicator::after {
  content: "-"
}

.collapsible h4 {
  margin: 0;
  line-height: inherit;
}

d-article .content {
  padding: .3em 1em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  border-color: hsla(206, 95%, 20%, 0.2);
  margin-bottom: 20px;
}

/* assign the final paragraph of an aside no bottom margin */
aside p:last-child {
  margin-bottom: 0;
}


aside.counting-table {
  position: absolute;
  top: 42%;
  left: 105%;
}

aside figure {
  margin: 0;
  display: block; /* Ensures that figure behaves as a block-level element */
}

aside figure table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* Use fixed table layout for consistent column sizing */
}

aside th, aside td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #dee2e6;
  white-space: nowrap;
  text-overflow: ellipsis; /* Add ellipsis to clipped content */
}

aside th {
  background-color: #e9ecef;
  color: #495057;
}
aside tr:hover {
  background-color: #f2f2f2;
}
aside th:first-child, aside td:first-child {
  border-right: 1px solid #dee2e6;
}

figcaption {
    font-size: 1em;
}

figcaption .table-caption {
  text-align: center;
  padding: 8px;
  font-style: italic;
  color: #6c757d;
  margin-top: 0; /* Ensures there is no additional space between table and caption */
  font-size: 12px;
}


* {
  box-sizing: border-box;
}

.img-magnifier-container {
  position:relative;
  margin-bottom: 20px;
}

.img-magnifier-glass {
  position: absolute;
  border: 3px solid #000;
  border-radius: 50%;
  cursor: none;
  /*Set the size of the magnifier glass:*/
  width: 100px;
  height: 100px;
}


img {
  vertical-align: middle;
}


/* Position the image container (needed to position the left and right arrows) */
.slider-img-container {
  position: relative;
}

/* Hide the images by default */
.my-slides {
  display: none;
}

#slider-img-tourist .my-slides img {
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 75%;
}

#slider-img-photographer .my-slides img {
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 90%;
}

.my-slides:hover .overlay {
  opacity: 1;
}

/* Add a pointer when hovering over the thumbnail images */
.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 45%;
  width: auto;
  padding: 10px;
  margin-top: -50px;
  color: rgb(148, 143, 143, 0.8);
  font-weight: bold;
  font-size: 30px;
  border-radius: 3px 3px 3px 3px;
  user-select: none;
  -webkit-user-select: none;
  border-bottom: none;
}

.prev {
  left: -5%;
}

/* Position the "next button" to the right */
.next {
  right: -5%;
  border-radius: 3px 3px 3px 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.7);
  color: rgb(255, 255, 255);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f8f9fa; /* Light color for better visibility */
  font-family: 'Arial', sans-serif; /* A more modern font */
  font-size: 16px; /* Slightly larger for readability */
  font-weight: bold; /* Make it bold */
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  padding: 5px 15px; /* Increased padding for better spacing */
  position: absolute;
  top: 10px; /* Adjusted to not be too close to the edge */
  left: 50%;
  transform: translateX(-50%); /* Center it horizontally */
  text-shadow: 1px 1px 2px black; /* Text shadow for better readability */
  border-radius: 5px; /* Rounded corners for a softer look */
}

.row {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Six columns side by side */
.column {
  float: left;
  margin-left: 10px;
  margin-right: 10px;
}

/* Add a transparency effect for thumnbail images */
.demo {
  opacity: 0.5;
  height: 50px; /* Fixed height */
  width: auto; /* Auto width to maintain aspect ratio */
}

.active-slide-img,
.demo:hover {
  opacity: 1;
}


.overlay {
  display: block;
  margin-left: 5%;
  margin-right: 5%;
  position: absolute; 
  top: 0; 
  background: rgba(0, 0, 0, 0.5); /* Black see-through */
  color: #f1f1f1; 
  width: 90%;
  transition: .5s ease;
  opacity:0;
  color: white;
  font-size: 20px;
  padding: 20px;
  text-align: center;
}

.system-fundamental-aside {
  display: none;
  background-color: #F3F8FF;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 100;
  width: 300px;
  color: rgb(0, 0, 0);
  font-size: 14px;
  height: fit-content;
  position: absolute;
  top: 39.5%;
  left: 105%;
}

.clickable-region {
  position: absolute;
  /* border: 2px solid rgba(255, 255, 255, 0.5); */
  /* background: rgba(255, 255, 0, 0.5);  */
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s; /* Smooth transition */
}

.clickable-region:hover {
  background: rgba(255, 255, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.75); /* Brighter border on hover */
}

.clickable-image-container {
  position: relative;
  width: 100%;
}
.clickable-image-container img {
  width: 100%;
  height: auto;
}

.resscolor {
  background-color: rgb(194,255,191);
}

.sizescolor {
  background-color: rgb(194,215,255);
}

.inline-tag {
  height: 18px;
  width: auto;
}

.explorer-aside, .tourist-aside {
  display: none;
  background-color: #F3F8FF;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 100;
  width: 300px;
  color: rgb(0, 0, 0);
  font-size: 13px;
  height: fit-content;
  position: absolute;
  left: 105%;
}

.tourist-aside {
  top: 39%;
}

.explorer-aside {
  top: 37%;
}

.virl-tag {
    height: 20px;
    margin-right: 5px;
    pointer-events: none;
}

blockquote.place-review {
  border-left: 2px solid #FFAE42; /* Brighter border color */
  padding-left: 5px !important;
  color: #333;                    /* Darker font color */
  font-style: italic;
  box-shadow: 2px 2px 8px #ccc;   /* Box shadow */
  padding-left: 2em;
  font-style: italic;
  color: rgba(0, 0, 0, 0.6);
  font-size: 12px;
  text-overflow: ellipsis; /* Add ellipsis to clipped content */
  margin-bottom: 0px;
}

aside blockquote {
  padding-left: 10px;
  color: #505050;                   
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}


.avatar-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2%;
  margin: 20px;
}

.avatar {
  text-align: center;
}

.avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid #ccc;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar img:hover {
  transform: scale(1.1);
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2);
}

.avatar figcaption {
  /* display: inline-block; */
  /* margin-top: 8px; */
  margin-left: auto;
  margin-right: auto;
  padding: 5px 10px;
  font-size: 1.05em;
  color: #333;
  /* background-color: #f8f8f8; */
  /* border: 1px solid #ddd; */
  /* border-radius: 5px; */
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
  text-align: center;
  width: 80px; /* Adjust as needed */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.left-aside-container {
  display: flex;
  flex-direction: row;
  margin-top: 10px;
}

.left-side-bar {
  position: absolute;
  top: 91.5%;
  left: -35%;
}
.right-side-bar {
  position: absolute;
  top: 91.5%;
  right: -35%;
}

@media (max-width: 1180px) {
    div.bm_city_fig > aside {
        display: none;
    }
}

.click-hint{
  display: block;
  margin: auto;
  width: 80%;
  font-size: 16px; /* Adjust the font size */
  color: #333333; /* Set text color */
  /* background-color: #f2f2f2; */
  border: 2px solid #cccccc; /* Add border */
  padding: 10px; /* Add padding around text */
  border-radius: 5px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
  text-align: center; /* Center the text */
  margin-bottom: 20px; /* Add some margin at the bottom */
}

.click-hint strong {
  color: #007bff; /* Highlight the 'strong' element with a different color */
  /* text-decoration: underline; Underline the 'strong' text */
}


.grey-overlay {
  position: absolute; /* Change to absolute positioning */
  top: 0;
  left: 0;
  width: 1000%; /* Full container width */
  height: 100%; /* Full container height */
  background-color: rgba(245, 237, 220, 0.5);
  z-index: -1; /* Ensure it's above other content */
  margin-left: -500%;
}

d-article h3 {
  margin-top: 20px;
}

d-article > div > h3 {
  width: 120%;
  margin-left: -10%;
}


.text {
  width: 120%;
  margin: 1em 0 1em -10%;
  font-size: 1.2rem;
}

h1.text {
    font-size: 2em;
    /* text-align: center !important; */
}
h2.text {
    font-size: 1.8em;
    margin-top: 1.8em;
    text-align: center !important;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1em;
}

/* Unified h3 styling for all subtitles */
h3.text, h3.example-title, .example-title {
    font-size: 1.4em;
    margin-top: 2em;
    text-align: center !important;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 1em;
    width: 120%;
    margin-left: -10%;
    box-sizing: border-box;
}

/* Unified h4 styling for all example titles */
h4.example-title {
    font-size: 1.2em;
    margin-top: 2em;
    text-align: center !important;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 1em;
    width: 120%;
    margin-left: -10%;
    box-sizing: border-box;
    text-transform: none !important;
}

/* Reduce top margin for first subsections in each section */
h3.text.first-subsection, 
h3.example-title.first-example, 
h4.example-title.first-example,
.example-title.first-example {
    margin-top: 0.5em;
}

/* Responsive image container for mobile-friendly images */
.responsive-image-container {
    width: 120%;
    margin: 1.5em 0 1.5em -10%;
    text-align: center;
    max-width: calc(100vw - 40px);
    overflow: hidden;
}

@media (max-width: 768px) {
    .responsive-image-container {
        width: 100%;
        margin: 1.5em 0;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
}

.abstract {
    font-size: 1.35rem;
}

.auto-video {
  width: 120%;
  margin-left: -10%;
}

#diego-plan-video, #diego-plan-video-cap {
  width: 150%; 
  margin-left: -20%;
}

.nav-bar {
  display: none;
}

.figure {
    width: 120%;
    margin-left: -10%
}

#nav-bar-benchmark {
    padding-bottom: 10px;
    /* background-color: #d2e3c845; */
    background-color: #ffc1c145;
}

#nav-bar-system {
  /* background-color: #b4d5ff32; */
    background-color: #ac87c52a;
}

@media (max-width: 768px) {
    .figure {
        width: 100%;
        margin-left: -1%;
    }
}

#nav-bar > div {
    margin: 2px 0;
}

.nav-link {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #333;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: #f5f5f5;
    border-left-color: #007bff;
    text-decoration: none;
}

.nav-title {
    display: block;
    padding: 4px 15px;
    font-weight: bold;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 5px;
}
.geo-color {
    background-color: rgba(227, 242, 233, 0.5);
}
.llm-color {
    background-color: rgba(227, 237, 248, 0.5);
}
.cv-color {
    background-color: rgba(254, 237, 237, 0.5);
}
.col-color {
    background-color: rgba(255, 255, 204, 0.5);
}
.geo-color:hover {
    background-color: rgba(227, 242, 233, 0.9);
}
.llm-color:hover {
    background-color: rgba(227, 237, 248, 0.9);
}
.cv-color:hover {
    background-color: rgba(254, 237, 237, 0.9);
}
.col-color:hover {
    background-color: rgba(255, 255, 204, 0.9);
}

div.nav-bar a {
  border: none;
  opacity: 0.5;
}

div.nav-bar a:hover {
  color: black;
  opacity: 1.0;
}

div.nav-bar img:hover {
  transform: scale(1.3);
}

a.active-link {
  color: #007bff; /* Change to your preferred color */
    /* If you're using images inside <a>, you might want to apply a filter instead */
  /* filter: brightness(1.2); */
  opacity: 1.0 !important;
}

/* a.active-link img {
  border: 2px solid #007bff;
  border-radius: 4px;
} */

.takeaway-card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  text-align: left;
  padding: 0px;
  margin: 1em;
  border-radius: 15px;
  line-height: 1.6;
}

.takeaway-head {
  display: flex;
  justify-content: space-between; /* Aligns items in a row with space between them */
  text-align: left;
  padding: 10px;
  padding-left: 15px;
  background-color: rgb(113, 115, 148);
  border-radius: 15px 15px 0px 0px;
  line-height: 1.6;
  color: white;
  font-size: 20px;
}

.takeaway-tags {
  display: flex; /* Ensures the images are lined up horizontally */
  align-items: center; /* Vertically centers the tags within the div */
  /* Additional styling, if necessary, can go here */
}

.exemplar-takeaways > .takeaway-card {
    display: none;
}


div.takeaway-tags img {
  height: 28px;
  margin-right: 5px;
}

.takeaway-content {
  font-size: 17px; /* Adjusts the font size */
  color: #333; /* Sets the text color; choose a color that fits your design */
  margin: 0px; /* Adds space around the paragraph */
  padding: 10px 10px 15px 15px;
  background-color: #f9f9f9; /* Optional background color */
  border-radius: 5px; /* Rounds the corners if there's a background color */
  line-height: 1.4; /* Adjusts the line height for better readability */
  /* Additional styling like text-align, letter-spacing, etc., can be added as per your preference */
  border-radius: 0px 0px 15px 15px;
}


.diego-revise-img {
  width: 130%;
  margin-left: -15%;
}

#prev-diego-revise-1, #prev-diego-revise-2 {
  top: 75%;
  left: -20%
}

#next-diego-revise-1, #next-diego-revise-2 {
  top: 75%;
  right: -20%
}


.img-grid-row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
  width: 120%;
  margin-left: -10%;
}

.img-grid-column {
  flex: 16%;
  padding: 0 4px;
}

.img-grid-column img {
  margin-top: 8px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  d-article > div > h3 {
    width: 100%;
    margin-left: 0%;
  }

  .text {
    width: 100%;
    margin: 1em 0 1em 0;
  }

  /* Fix h3 example titles and similar headings on mobile */
  h3.text, h3.example-title, h4.example-title, .example-title {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
  }

  /* Fix show-more button container on mobile */
  .show-more-container {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
  }

  /* Fix control hint on mobile */
  .control-hint {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .auto-video, .diego-revise-img,
  #diego-plan-video, #diego-plan-video-cap {
    width: 100%;
    margin-left: 0%;
  }

  div.takeaway-tags img {
    height: 22px;
    margin-right: 2px;
  }

  #prev-diego-revise-1, #prev-diego-revise-2 {
    top: 115%;
    left: -7%
  }
  
  #next-diego-revise-1, #next-diego-revise-2 {
    top: 115%;
    right: -7%
  }

  aside {
    display: none;
  }
}

.agent-block {
    position: relative;
    padding-bottom: 2em;
    padding-top: 1em;
}

#geo, .geo {
    position: relative;
    padding-top: 1em;
    
    .grey-overlay {
        background-color: rgba(227, 242, 233, 0.5);
    }
    .text {
        margin-bottom: 0px;
        padding-bottom: 1em;
    }
}

#language, .language {
    position: relative;
    padding-top: 1em;
    
    .grey-overlay {
        background-color: rgba(227, 237, 248, 0.2);
    }
    .text {
        margin-bottom: 0px;
        padding-bottom: 1em;
    }
    hr {
        margin-top: 30px;
    }
}

#vision, .vision {
    position: relative;
    padding-top: 1em;
    
    .grey-overlay {
        background-color: rgba(254, 237, 237, 0.5);
    }
    .text {
        margin-bottom: 0px;
        padding-bottom: 1em;
    }
}

#collaboration, .collaboration {
    position: relative;
    padding-top: 1em;
    
    .grey-overlay {
        background-color: rgba(255, 246, 232, 0.5);
    }
    .text {
        margin-bottom: 0px;
        padding-bottom: 1em;
    }
}


.agent-block > .grey-overlay {
    border-bottom: 0.2px solid rgba(129, 126, 126, 0.25);
}



.icon-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.icon-item {
  align-items: center;
  display: flex;
  line-height: 1.4;
}

.icon-item img {
  width: 30px;
  height: 30px;
  margin-right: 1em;
  filter: brightness(95%) contrast(90%);
}


.icon-jump {
  height: 1.8em; /* Set a fixed height for all icons */
  width: auto; /* Adjust width to maintain aspect ratio */
  margin-bottom: 5px; /* Space between icon and text */
  filter: invert(100%); /* Invert the color of the icon */
}

.icon-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping to the next line */
  width: 100%;
  padding: 20px; /* Padding around the images */
  line-height: 1rem;
}

.icon-link {
  display: flex;
  flex-direction: column; /* Stack image and text vertically */
  align-items: center; /* Center the image and text */
  text-align: center; /* Center text below the image */
  color: inherit; /* Inherit color from parent */
  padding: 10px; /* Add padding around the link */
  margin: 10px; /* Add margin around each link for spacing */
  border: 3px solid #508af6;
  border-radius: 10px;
  background-color: #d6eefb;
  flex: 1 1 100px; /* Allow flex items to grow and shrink */
}

.icon-link:hover {
  background-color: #88c2fa;
}

@media (max-width: 600px) {
  .icon-link {
      flex: 1 1 45%; /* Allow each icon link to take up about half the width */
  }
}

/* Result images consistent with text layout */
.result-image {
  width: 120%;
  margin: 0em 0 0em -10%;
  text-align: center;
}

.result-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background-color: white;
  max-width: 100%;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
  .result-image {
    width: 100%;
    margin: 1em 0;
  }
  
  .nav-bar {
    display: none;
  }
}

/* Finegrained control grid layout */
.finegrained-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 2em 0;
  padding: 0;
}

.finegrained-item {
  text-align: center;
  margin: 0;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 10px 0px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.finegrained-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 8px;
}

.finegrained-item figcaption {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  margin: 0;
  padding: 0;
}

/* Responsive adjustments for the grid */
@media (max-width: 900px) {
  .finegrained-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 700px) {
  .finegrained-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .finegrained-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .finegrained-item figcaption {
    font-size: 12px;
  }
}

/* Wide finegrained control grid layout - always single column */
.finegrained-grid-wide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin: 2em 0;
  padding: 0;
}

.finegrained-item-wide {
  text-align: center;
  margin: 0;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.finegrained-item-wide img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
}

.finegrained-item-wide figcaption {
  font-size: 18px;
  color: #4a5568;
  font-weight: 500;
  margin: 0;
  padding: 0;
}

/* Responsive adjustments for wide grid */
@media (max-width: 768px) {
  .finegrained-grid-wide {
    gap: 20px;
  }
  
  .finegrained-item-wide {
    padding: 15px;
  }
  
  .finegrained-item-wide figcaption {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .finegrained-grid-wide {
    gap: 15px;
  }
  
  .finegrained-item-wide {
    padding: 12px;
  }
  
  .finegrained-item-wide figcaption {
    font-size: 12px;
  }
}

/* Custom CSS for responsive slider images */
.example-section {
    margin: 35px 5px;
    overflow-x: visible;
}

.slider-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 20px;
    margin: 0;
    width: 120%;
    margin: 0em 0 0.5em -10%;
    text-align: center;
    padding: 20px 0px 10px 0px;
    background-color: #ffffff;
    border-radius: 0;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120%;
    margin: 0em 0 2.5em -10%;
    text-align: center;
    padding: 0px 0px;
    background: transparent;
    border-radius: 0;
    gap: 16px;
}

.slider-input-container {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.frame-slider {
    -webkit-appearance: none;
    width: 300px;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #e2e8f0 0%, #e2e8f0 100%);
    outline: none;
    transition: all 0.2s ease;
}

.frame-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: 2px solid white;
}

.frame-slider::-webkit-slider-thumb:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.frame-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 2px solid white;
    transition: all 0.2s ease;
}

.frame-slider::-moz-range-thumb:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.frame-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    border: none;
}

.control-hint {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    margin-top: 8px;
    font-weight: 500;
    background: rgba(100, 116, 139, 0.06);
    border-radius: 6px;
    padding: 6px 12px;
    width: 120%;
    margin-left: -10%;
    border: 1px solid rgba(100, 116, 139, 0.08);
}

.control-hint kbd {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.reset-button {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(100, 116, 139, 0.25), 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.reset-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.reset-button:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(100, 116, 139, 0.4), 0 3px 8px rgba(0, 0, 0, 0.15);
}

.reset-button:hover::before {
    left: 100%;
}

.reset-button:active {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    transform: translateY(0px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.4);
}

.slider-figure {
    text-align: center;
    margin: 0;
    position: relative; /* Add position relative for crossfade */
}

.slider-figure img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    /* Add smooth opacity transition for crossfade effect */
}

/* Crossfade overlay image for smooth transitions */
.slider-figure .crossfade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: inherit;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* When transitioning, show the overlay with subtle zoom effect */
.slider-figure.transitioning .crossfade-overlay {
    opacity: 1;
}

/* Keep main image fully visible during transition - no opacity reduction */
.slider-figure.transitioning img:not(.crossfade-overlay) {
    opacity: 1;
}

/* Aspect ratio 1:1.33 (portrait-ish) */
.slider-figure.aspect-1-1-33 img,
.slider-figure.aspect-1-1-33 .crossfade-overlay {
    height: auto;
    aspect-ratio: 1 / 1.33;
}

/* Aspect ratio 1.5:1 (landscape) */
.slider-figure.aspect-1-5-1 img,
.slider-figure.aspect-1-5-1 .crossfade-overlay {
    height: auto;
    aspect-ratio: 1.5 / 1;
}

.slider-figure img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slider-figure figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .slider-container {
        width: 140%;
        margin-left: -20%;
        margin-right: -20%;
        padding-left: 0px;
        padding-right: 0px;
        gap: 15px;
    }
    
    .slider-controls {
        width: 140%;
        margin-left: -20%;
        margin-right: -20%;
        padding-left: 0px;
        padding-right: 0px;
    }
}

@media (max-width: 900px) {
    .slider-container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        width: 120%;
        margin-left: -10%;
        margin-right: -10%;
        padding-left: 0px;
        padding-right: 0px;
        gap: 15px;
    }
    
    .slider-controls {
        width: 120%;
        margin-left: -10%;
        margin-right: -10%;
        padding-left: 0px;
        padding-right: 0px;
    }
    
    .frame-slider {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .slider-controls {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .frame-slider {
        width: 180px;
    }
    
    .slider-input-container {
        padding: 10px 16px;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .frame-slider {
        width: 160px;
    }
    
    .slider-input-container {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .reset-button {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        width: 100%;
        margin-left: 0%;
        margin-right: 0%;
        padding-left: 0px;
        padding-right: 0px;
        gap: 12px;
    }
    
    .slider-controls {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .frame-slider {
        width: 140px;
    }
    
    .slider-input-container {
        padding: 6px 10px;
        gap: 6px;
    }
    
    .reset-button {
        padding: 5px 8px;
        font-size: 10px;
    }
}

/* Collapsible functionality */
.show-more-container {
    text-align: center;
    margin: 2em 0;
    width: 120%;
    margin-left: -10%;
}

.show-more-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.show-more-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.show-more-btn:active {
    transform: translateY(0px);
}

.show-more-btn .icon {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.show-more-btn.expanded .icon {
    transform: rotate(180deg);
}

.collapsible-examples {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    padding: 0;
    opacity: 0;
    position: relative;
}

.collapsible-examples.expanded {
    max-height: 5000px; /* Large enough to accommodate all content */
    overflow: visible;
    transition: max-height 0.5s ease-in, opacity 0.5s ease-in;
    opacity: 1;
}

/* TL;DR Section Styles */
.tldr-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
    padding: 40px 0;
    margin: 0;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.tldr-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.tldr-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.demo-video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background-color: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-video:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.video-caption {
    margin-top: 15px;
    font-size: 1.1rem;
    color: #475569;
    font-style: italic;
    text-align: center;
    line-height: 1.5;
    max-width: 800px;
}

/* Responsive Design for TL;DR */
@media (max-width: 768px) {
    .tldr-section {
        padding: 30px 0;
    }
    
    .tldr-container {
        padding: 0 16px;
    }
    
    .tldr-content {
        gap: 18px;
    }
    
    .video-caption {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .tldr-section {
        padding: 25px 0;
    }
    
    .tldr-container {
        padding: 0 12px;
    }
    

    
    .video-caption {
        font-size: 0.95rem;
    }
    
    .demo-video {
        border-radius: 8px;
    }
}

/* Ensure parent containers allow horizontal overflow */
.vision-block, .sub-section {
    overflow-x: visible;
}

/* Appendix styling to match main text width (120%) */
d-appendix {
    width: 120%;
    margin: 2em 0 2em -10%;
    box-sizing: border-box;
}

d-appendix h3 {
    width: 120% !important;
    margin: 30px 0 15px -10% !important;
    font-size: 1.3em !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    text-align: left !important;
    box-sizing: border-box;
}

d-appendix .bibtex-container {
    width: 120% !important;
    margin: 15px 0 15px -10% !important;
    box-sizing: border-box;
}

d-appendix d-footnote-list,
d-appendix d-citation-list {
    width: 120% !important;
    margin-left: -10% !important;
    box-sizing: border-box;
}

/* Target all elements within the references section */
d-appendix d-footnote-list *,
d-appendix d-citation-list * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Specific styling for reference items */
d-appendix ol,
d-appendix ul,
d-appendix li,
d-appendix p {
    width: 100% !important;
    margin-left: 0 !important;
    box-sizing: border-box;
}

/* Target the specific references list */
d-appendix #references-list,
d-appendix .references,
d-appendix ol.references {
    width: 120% !important;
    margin-left: -10% !important;
    box-sizing: border-box;
    max-width: none !important;
}

/* Responsive behavior for appendix on mobile */
@media (max-width: 768px) {
    d-appendix {
        width: 100%;
        margin: 2em 0;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    d-appendix h3 {
        width: 100% !important;
        margin: 30px 10px 15px 0 !important;
    }
    
    d-appendix .bibtex-container {
        width: 100% !important;
        margin: 15px 10px !important;
    }
    
    d-appendix d-footnote-list,
    d-appendix d-citation-list {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    d-appendix ol,
    d-appendix ul,
    d-appendix li,
    d-appendix p {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    d-appendix #references-list,
    d-appendix .references,
    d-appendix ol.references {
        width: 100% !important;
        margin-left: 0 !important;
        max-width: 100% !important;
    }
}