body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  background-color: #2d2d2d;
  color: #f9f9f9;
  line-height: 1.6;
  padding: 20px;
  overscroll-behavior: none;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #666;
  font-family: 'Roboto';
  padding: 0;
  text-align: center;
}

footer p {
  margin: 0;
  margin-top: 35px;
  margin-bottom: -20px;
  font-weight: 300;
}

footer a {
  text-decoration: none;    /* remove underline */
  color: inherit;           /* match surrounding text */
  position: relative;
  top: -15px;                /* nudge upward slightly */
  font-weight: 300;
}

footer.site-footer {
  visibility: hidden;
}




/* --- Index page --- */


.two-column {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.right-column {
  flex: 1;
  display: flex;
  justify-content: flex-end; /* align image-wrapper to the right */
  max-width: 500px;
}

.image-wrapper {
  text-align: center; /* center text inside the wrapper */
}

.image-wrapper img {
  width: 70%;
  height: auto;
  display: block;
  margin: 0 auto; /* ensures it's centered within image-wrapper */
}

.left-column {
  flex: 1;
  font-size: 14px;
  max-width: 530px;
  margin-right: auto;
  margin-top: 60px;
}
.left-column-italics {
  color: #999999;
  font-family: 'Libre Baskerville', serif;
  font-size: 14px;
  font-style: italic;
  max-width: 400px;
  margin-right: auto;
  margin-left: 20px;
  padding: 5px;
}

.HL-text {
  color: #fdc14a;
  font-weight: bold;
}

.HL2-text {
  color: #999999;
  font-weight: bold;
}



#latest-climbs {
  list-style: none;
  padding-left: 0;
  margin-left: -28px;
  margin-bottom: 0px;
  margin-top: -10px;
}

#latest-climbs li {
  margin-bottom: 2px;
}

#latest-climbs li:last-child {
  margin-bottom: 0;
}

#latest-climbs .problem-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

#latest-climbs .camera-icon {
  width: 1.5em;
  text-align: center;
  display: inline-block;
  font-size: 1em;
  margin-right: 2px;
}

#latest-climbs .problem-name-link {
  text-decoration: none;
  color: inherit;
  display: inline;
}

#latest-climbs .problem-name-link strong {
  position: relative;
  display: inline-block;
}

#latest-climbs .problem-name-link:hover strong::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 1px;
  background-color: #f9f9f9;
}

#latest-climbs .problem-meta {
  color: #999999;
  font-size: 90%;
  margin-left: 4px;
  gap: 0px;
  vertical-align: top;
}

#latest-climbs .grade {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  color: #777;
  position: relative;
  top: -0.03em;
}

#latest-climbs .rating {
  color: #f1c232;
  font-size: 90%;
  vertical-align: super;
  position: relative;
  top: 0.3em;
}

#latest-climbs .expo {
  font-family: 'Arial Black', Gadget, sans-serif;
  color: #cc0000;
}

#latest-climbs .fa-name {
  font-style: italic;
  font-size: 14px;
  margin-left: 2px;
  color: #aaa;
}



.latest-climbs-container {
  position: relative;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 20px;
  padding-right: -200px;
  margin-top: 90px;
  margin-bottom: 0px;
  border: 1px solid #fdc14a;
  border-radius: 8px;
  max-width: 500px
}

#latest-climbs .camera-icon {
  position: relative;
  z-index: 2;
  background-color: #2d2d2d; /* same as body background */
  padding: 0 2px;
}




/* --- About page --- */


body.about-page .site-branding h1 {
  visibility: hidden;
}

.about-left h1,
.about-right h1 {
  margin-bottom: 0px;
}

.about-page h3 {
  margin-bottom: -15px !important;
  margin-top: 10px !important;
  color: #fdc14a; /* for debugging visibility */
}

.about-left p,
.about-right p {
  margin-bottom: 0px;
}

.about-row {
  display: flex;
  justify-content: space-between;
  align-items: center; /* ← this vertically centers the items */
  gap: 40px;
  margin-bottom: 80px;
}

.about-row.reverse {
  flex-direction: row-reverse;
}

.about-left,
.about-right {
  flex: 1;
  max-width: 500px;
  font-size: 14px;
  line-height: 1.5;
}

.about-left,
.about-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-page .tight-bullet {
  margin: 0;
  line-height: 1.3;
  font-size: 13px;
}

.about-page .arrow-list {
  list-style: none;
  padding-left: 0px;
  margin: 10px 0;
}

.about-page .arrow-item {
  position: relative;
  margin: 6px 0;
  margin: 10px 0; 
  line-height: 1.4;
}

.about-page .arrow-item::before {
  content: '»';
  position: absolute;
  left: -1.2em;
  color: #fdc14a;
  font-weight: bold;
}

.about-page .star-symbol {
  color: #f9f9f9;
  margin-right: 6px;
}

.about-page .expo-symbol {
  font-family: 'Arial Black', sans-serif;
  color: #f9f9f9;
  margin-left: 6px;
}








/* --- Area-index page --- */

.area-index .site-branding h1,
.area-page .site-branding h1,
.problem-page .site-branding h1 {
  visibility: hidden;
}

.area-columns {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.location-column {
  flex: 1;
}

#left-locations {
  text-align: right;
}

#right-locations {
  text-align: left;
}

.area-divider {
  width: 1px;
  background-color: #fdc14a;
  height: auto; /* adjusts to the tallest column */
  align-self: stretch;
}

.area-index h2 {
  color: #555555;
  font-size: 38px;
  font-weight: 700;
  margin-top: 0px;
  margin-bottom: -2px;
}

.area-index .location-column section h2 {
  margin-top: 20px;
}

.area-index ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  margin-top: 0;
  margin-bottom: 10;
}

.area-index ul li {
  margin-bottom: 6px;
}

.area-index ul li a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  
}

.area-index ul li a:hover:not(.active) {
  text-decoration: underline;
}





/* --- Area page --- */

#problems-section h2 {
  margin-bottom: 4px; /* Reduce space below grade heading */
}

#problems-section ul {
  margin-top: 0; /* Remove default margin above the list */
  padding-left: 20px; /* Optional: keeps list aligned nicely */
  margin-bottom: 30px;
}

.problem-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: -6px;
}

.camera-icon {
  width: 1.5em; /* Enough space for 📷 */
  text-align: center;
  display: inline-block;
  font-size: 1em;
  margin-right: 2px;
}

.problem-meta {     /* color for expo, rating, faYear on */
  color: #999999;
  vertical-align: top;
  position: relative;
  top: -1.2px; /* adjust as needed, try -1px or -3px too */
  font-size: 90%;
  margin-left: 4px;
}

.name-meta-combo {
  display: inline-block;
}

#problems-section ul {
  list-style: none;
  padding-left: 0;
  margin-left: -25px;
}

.expo {             /* expo as thick exclamation mark */
  font-family: 'Arial Black', Gadget, sans-serif;
  position: static;
  top: -0px;
  color: #cc0000;
}

.rating {
  font-size: 90%;
  vertical-align: super;
  position: relative;
  top: 0.3em;
  color: #f1c232;
}

.fa-year {
  font-style: italic;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
}

.circ {
  font-size: 80%;           /* smaller */
  font-weight: 300;        /* bold */
  display: inline-block;
  text-align: center;
  vertical-align: middle;   /* helps with vertical alignment */
  position: relative;
  top: -1px;                /* nudges it upward */
  color: #f79646;           /* keep the original orange */
  margin-left: 4px; 
}

.problem-name-link {
  text-decoration: none;
  color: inherit;
  display: inline;
}
  
.problem-name-link strong {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.problem-name-link:hover strong {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.area-layout {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.area-content-row {
  display: flex;
  align-items: stretch;  /* match heights */
  gap: 100px;
  padding-bottom: 10px;
}

.area-content-row.only-chart .chart-wrapper {
  margin-left: auto;
}

.area-text {
  font-size: 13px;
  color: #fff;
  line-height: 1.6;
  white-space: normal;
  text-align: left;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.area-left {
  flex: 1;
  min-width: 0;
}

.area-right {
  width: 100%;
  max-width: 588px;
  flex-shrink: 0;
  padding-top: 0px;
  padding-right: 0px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chart-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-shrink: 0;
}

#gradeChart {
  width: 300px !important;
  min-width: 300px;
  max-width: 300px;
  height: 200px !important; /* Set your desired height here */
  min-height: 200px;
  max-height: 200px;
}

.problems-and-image-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.area-right img {
  margin-top: 20px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

#area-caption {
  display: none;
  text-align: center;
  margin-top: 10px;
  align-self: center;
}

#area-description {
  font-size: 12px;
  color: #ccc;
}

#area-photographer {
  font-size: 12px;
  color: #777;
}







/* --- Problem page --- */

.area-name-label {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: #aaa;
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

.area-prefix {
  color: #aaa;
}

.area-link {
  color: #aaa;
  text-decoration: none;
}

.area-link:hover {
  text-decoration: underline;
}

#problem-name {
  font-size: 28px; /* or larger, e.g. 32px */
  font-weight: 500; /* optional: boldness */
  margin-bottom: 10px; /* optional: spacing below */
}

.problem-meta-inline {
  margin-left: 10px;
  font-size: 0.9em;
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
}

.grade-inline {
  font-family: 'Roboto', sans-serif;
  font-weight: 900; /* Roboto Black */
}

.rating-inline {
  font-size: 90%;
  vertical-align: super;
  position: relative;
  top: -0.1em;
  color: #f1c232;;
}

.expo-inline {
  font-family: 'Arial Black', Gadget, sans-serif;
  color: #cc0000;
}

.fa-name {
  font-family: 'Roboto', sans-serif;
  font-weight: 300; /* Light */
  font-size: 16px;
  color: #aaa;
  margin-top: -15px;
  margin-bottom: 30px;
}

.fa-name-link {
  font-weight: 300;
  text-decoration: none;
  color: inherit;
}

.fa-name-link:hover {
  text-decoration: underline;
}

.problem-style {
  font-family: 'Roboto', sans-serif;
  font-weight: 300; /* Light */
  font-size: 14px;
  color: #777;
  margin-top: -30px;
  margin-bottom: 20px;
  font-style: italic;
}

.problem-description {
  margin-top: 40px;
  margin-bottom: 30px;
}


.problem-additional {
  display: none;
  font-size: 14px;
  color: #aaa;
  margin-top: 45px;

  border: 1px solid #aaa;
  border-radius: 6px;
  padding: 16px 16px 10px;
}


.problem-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.problem-text {
  margin-top: -15px;
  flex: 1;
}

.problem-images-container {
  flex: 1;
  max-width: 500px;
}


#problem-images {
  display: grid;
  grid-template-columns: repeat(2, 250px);
  gap: 16px; /* Same space between rows and columns */
  justify-content: start;
}

#problem-images img {
  width: 250px;               /* fixed width */
  height: 250px;               /* fixed height */
  object-fit: cover;          /* crops to fill box */
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex: 0 0 auto;             /* no stretch/shrink */
}

#problem-images img:hover {
  transform: scale(1.03);
  z-index: 2;
}

@media (max-width: 650px) {
  #problem-images {
    grid-template-columns: 1fr;
  }
}

.caption-name-link {
  color: inherit;
  text-decoration: none;
  font-weight: 400;
}

.caption-name-link:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  padding: 0 0.6em;
  color: #aaa;
}







/* --- PERSON page --- */


#first-ascents h2 {
  margin-bottom: 4px;
}

#first-ascents ul {
  list-style: none;
  padding-left: 0;
  margin-left: -25px;
  margin-bottom: 30px;
  margin-top: 0;
}

#first-ascents li {
  margin-bottom: 6px;
}

.person-layout {
  display: flex;
  gap: 40px; /* Increased from 0px to create more space between columns */
  align-items: flex-start; /* Changed from 'left' which isn't a valid value for align-items */
  justify-content: space-between;
}

.person-left {
  flex: 0.8; /* Give more weight to the left side */
}

.person-right {
  flex: 1;
  text-align: left;
  font-size: 14px;
  color: #ccc;
  padding-top: 30px; /* Add some top padding to align with content */
}

.ascent-count {
  display: none;
  align-self: flex-start;
  text-align: left;
  margin-top: 0;
  margin-right: 75px;
  font-size: 14px;
  color: #aaa;

  border: 1px solid #fdc14a;
  border-radius: 6px;
  padding: 16px 16px 10px;
}

.highlight-white {
  color: #f9f9f9;
}

.climber-images {
  margin-top: 30px;
  display: none; /* default hidden until JS enables it */
}

.climber-images-title {
  margin-bottom: 10px;
  font-size: 20px;
  font-family: 'Libre Baskerville', serif;
}

.climber-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 250px);
  gap: 16px;
  justify-content: start;
}

.climber-image-grid img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.climber-image-grid img:hover {
  transform: scale(1.03);
  z-index: 2;
}

@media (max-width: 650px) {
  .climber-image-grid {
    grid-template-columns: 1fr;
  }
}

#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
}

#lightbox-caption {
  color: #f9f9f9;
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
  max-width: 90vw;
}

#lightbox-title a {
  color: #f9f9f9;
  text-decoration: none;
  margin-bottom: 40px;
  font-size: 18px;
  font-weight: bold;
}

#lightbox-title a:hover {
  text-decoration: underline;
}

.lightbox-nav {
  visibility: hidden;
  position: absolute;
}

.caption-block {
  text-align: center;
  font-size: 14px;
  color: #f9f9f9;
  line-height: 1.4;
}





/* --- MAP page --- */

body.map-page .site-branding h1 {
  visibility: hidden;
}

.map-page main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.map-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

.map-label {
  background: #cccccc;
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  max-width: 220px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.map-label a {
  color: #555555;
  text-decoration: none;
}
.map-label a:hover {
  text-decoration: underline;
}

.popup-container {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 1000;
}
.popup-bubble-anchor {
  display: flex;
  justify-content: center;
}








/* --- SECTOR page --- */

.sector-page h1#area-title {
  font-size: 28px;
  font-weight: 600;
  padding-top: 0px;
  padding-bottom: 20px;
  color: #f9f9f9;
  font-family: 'Libre Baskerville', serif;
}

.sector-text {
  margin-top: -15px;
  flex: 1;
}

.sector-label {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #aaa;
  padding-top: 6px;
  margin-bottom: -5px;
}

.sector-prefix {
  color: #aaa;
}

.hidden {
  display: none;
}



/* --- STATS page --- */

.stats-page #gradeChart {
  width: 600px !important;
  max-width: 600px;
  height: 400px !important;
  max-height: 400px;
}




/* --- SEARCH bar --- */

#search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: start;
  padding-top: 100px;
}

#search-box {
  background-color: #1e1e1e;
  border-radius: 10px;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

#search-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px;
  font-size: 16px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: none;
  background-color: #333;
  color: #fff;
}

#search-results {
  max-height: 400px;
  overflow-y: auto;
}

.result-group {
  margin-bottom: 10px;
}

.result-heading {
  color: #999;
  font-weight: bold;
  margin-top: 10px;
  font-size: 14px;
}

.result-item {
  display: block;
  padding: 5px 10px;
  text-decoration: none;
  color: #f9f9f9;
  font-size: 15px;
}

.result-item:hover {
  background-color: #444;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

#adv-search-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #333;
  border-radius: 5px;   
  width: 45px;
  height: 40px;
  box-sizing: border-box;
  margin-left: 15px; 
  margin-top: -8px;
}

#adv-search-link img {
  width: 18px;
  height: 18px;
}











/* --- ADV-SEARCH page --- */



#grade-slider {
  width: 160px;
  margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  line-height: 0;
}

#grade-slider .noUi-origin {
  background: transparent;
  border: none;
  box-shadow: none;
}

#grade-slider .noUi-target {
  padding: 0 8px;
  box-sizing: border-box;
}

#grade-slider .noUi-base {
  background: #777;
  height: 3px;
  margin: 0;
  border-radius: 0;
}

#grade-slider .noUi-connect {
  background: #f1c232;
  height: 3px;
  top: 0;
  left: 8px; /* Offset to align with handle center */
  margin: 0; /* Remove all margins */
}

/* The draggable yellow handles */
#grade-slider .noUi-handle {
  width: 16px;
  height: 16px;
  background: #f1c232;
  border: 2px solid white;
  border-radius: 50%;
  top: -7px;
  box-shadow: none;
  cursor: grab;
}

#grade-slider .noUi-handle-lower {
  transform: translateX(-1px);
}

/* Hover/active effects */
#grade-slider .noUi-handle:hover {
  background: #ffd966;
}

#grade-slider .noUi-handle:active {
  transform: scale(1.1);
  cursor: grabbing;
}

/* Remove default handle decorations */
#grade-slider .noUi-handle:before,
#grade-slider .noUi-handle:after {
  display: none;
}

#grade-range-display {
  font-size: 13px;
  color: #aaa;
  text-align: center;
  margin: 0;
  line-height: 1.2;
}

.icon-toggle {
  cursor: pointer;
  font-size: 20px;
  color: #777;
  transition: color 0.2s ease;
}

.icon-toggle.active {
  color: #f1c232; /* or any highlight color you prefer */
}

#toggle-expo {
  font-family: 'Arial Black', Gadget, sans-serif;
}

#toggle-expo.active {
  color: #cc0000; /* keep red even when active */
}

#toggle-expo.no-expo {
  color: #222; /* black when filtering out expo problems */
}

.style-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.style-checkbox {
  font-size: 13px;
  color: #ccc;
  white-space: nowrap;
}


#sector-group {
  display: none;
}



/* Fix for search results alignment */

#search-results .result-row {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 6px;
}

.adv-search .problem-row {
  display: flex;
  align-items: center; /* This ensures all elements align to the same baseline */
  gap: 8px;
  line-height: 1.2; /* Consistent line height */
}

.adv-search .problem-name-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex; /* Changed from inline to inline-flex */
  align-items: center; /* Align with other elements */
}

.adv-search .problem-name-link strong {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #f9f9f9;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2; /* Match parent line height */
}

.adv-search .problem-meta {
  font-size: 13px;
  display: inline-flex;
  gap: 6px;
  align-items: center; /* Changed from baseline to center for better alignment */
  color: #999;
  line-height: 1.2; /* Consistent line height */
}

.adv-search .grade {
  font-weight: 900;
  color: #777;
  font-size: 13px;
  line-height: 1.2;
  /* Removed position relative and top offset */
}

.adv-search .rating {
  color: #f1c232;
  font-size: 12px;
  line-height: 1.2;
  top: -0.1em;
  /* Removed position relative and top offset */
}

.adv-search .expo {
  font-family: 'Arial Black', Gadget, sans-serif;
  color: #cc0000;
  font-size: 13px;
  line-height: 1.2;
  position: relative;
  top: -0.1em;
  /* Removed position relative and top offset */
}

.adv-search .area-name {
  font-size: 13px;
  color: #aaa;
  line-height: 1.2;
  margin-left: 6px;
  /* Removed position relative and top offset */
}



.adv-search .problem-name-link strong {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #f9f9f9;
  text-decoration: none;
  cursor: pointer;
}

.adv-search .problem-name-link strong {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.adv-search .problem-name-link:hover strong::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 100%;
  height: 1px;
  background-color: #f9f9f9;
}

.results-heading {
  position: sticky;
  top: 0;
  background-color: #2d2d2d;
  padding: 8px 0;
  font-size: 16px;
  color: #f9f9f9;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px; /* small gap between "Results" and the count */
  font-weight: bold;
}

#results-count {
  font-weight: normal;
  color: #aaa;
}

.adv-search .site-branding h1 {
  visibility: hidden;
}

.style-box {
  display: inline-block;          /* allow width to fit content */
  border: 1px solid #aaa;
  border-radius: 6px;
  padding: 16px 34px 8px 14px;
  max-width: 100%;                /* prevent overflow on small screens */
  box-sizing: border-box;         /* include padding in total width */
}

#styles-container {
  display: flex;
  flex-direction: column;
  gap: 12px; /* space between row groups */
}

.style-row {
  display: grid;
  grid-template-columns: repeat(4, 120px); /* or 120px, adjust as needed */
  column-gap: 8px;
  row-gap: 6px;
}

.style-checkbox {
  font-size: 13px;
  color: #ccc;
  white-space: nowrap;
}






/* --- ACCESS page --- */

.about-page .access-image .image-wrapper img {
  width: 100%;
  max-width: 100%;
}






/* --- STORE page --- */

body.store-page .site-branding h1 {
  visibility: hidden;
}

.store-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.store-image-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  background-color: #1c1c1c;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.store-image-grid img:hover {
  transform: scale(1.05);
  z-index: 2;
}

.product-description {
  font-size: 14px;
  line-height: 1.5;
}

/* --- Lightbox for store images --- */
body.store-page #lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: default;
}

body.store-page #lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.product-price {
  margin-right: 20px;
  display: inline-block;
}

.product-meta {
  margin-top: 12px; /* separates it from the paragraph above */
  display: flex;
  gap: 20px; /* space between Price and Sizes */
  font-size: 14px;
}

.old-price {
  text-decoration: line-through;
  color: #777;
  margin-right: 6px;
  margin-left: 6px;
}

.new-price {
  color: #fdc14a;  /* KjugeBloc's yellow highlight */
  font-weight: bold;
}

.sold-out {
  color: #777;
}




/* --- CIRCUIT page --- */

.circuit-page .area-columns {
  display: grid;
  margin-right: 100;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 20px;
  display: flex;
  align-items: flex-start;
}

#col-1 {
  min-width: 0;
  overflow: hidden;
}

.circuit-page .problem-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.circuit-page .problem-name-link {
  font-weight: 600;
  display: inline-block;
  max-width: 18em; /* Adjust to taste */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.circuit-page .problem-name-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.circuit-page .problem-meta {
  white-space: nowrap;
  flex-shrink: 0;
}

.circuit-page #col-1 {
  overflow: visible;
  padding-left: 0px;  /* Optional: add slight indent */
}

.circuit-page {
  font-family: 'Roboto', sans-serif;
  background-color: #2d2d2d;
  color: #f9f9f9;
  line-height: 1.6;
  padding: 20px;
}

.circuit-page h2 {
  font-size: 24px;
  color: #f9f9f9;
  margin-top: 20px;
  margin-bottom: 10px;
}

.circuit-page h2::before {
  content: "[";
  margin-right: 2px;
}

.circuit-page h2::after {
  content: "]";
  margin-left: 2px;
}

#kjugekull-wrapper ul,
#panshamn-wrapper ul {
  list-style: none;
  padding-left: 0;
  margin-left: -25px;
  margin-bottom: 30px;
  margin-top: 0;
}

.circuit-page li {
  margin-bottom: 6px;
}

body.circuit-page .site-branding h1 {
  visibility: hidden;
}




header, footer {
  text-align: center;
  margin: 5px 30px 40px 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 15px; /* space between logo and title */
}

.logo {
  height: 40px; /* or whatever size fits well */
  width: auto;
  display: block;
  margin-top: -20px;
}

.site-header {
  background-color: #272727;
  text-align: left;
  margin: -20px -20px 40px -20px;
  padding: 20px 20px 0px 20px;
  position: sticky;
  top: 0;
  overflow: visible;
  z-index: 100;
}

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

h1, h2 {
  margin-top: 0;
  font-family: 'Libre Baskerville', serif;
  font-size: 24px;
}


a {
  color: #f9f9f9;
  text-decoration: underline;
}

.image-caption {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #ccc;
  text-align: center;
  margin-top: 8px;
}


nav {
  margin: 0;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #f9f9f9;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.nav-links a:hover:not(.active) {
  text-decoration: underline;
}

.nav-links a.active {
  background-color: none;
  color: #d9d9d9;
  padding: 5px 10px;
  border: 1px solid #fdc14a;
  border-radius: 4px;        /* optional: rounded corners */
}

.header-tagline {
  margin-top: 10px;
  text-align: center; /* or left, if you want it aligned with h1 */
}
