/*style.css*/

/* === Reset and Base Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Space Grotesk", sans;
  background-color: #1b2b34;
  color: #1f1f1f;
  line-height: 1.6;
}

/* Muted text contrast on dark backgrounds (ADA) */
body .muted,
body small.muted {
  color: #d6dde2; /* lighter muted gray for AA contrast on #1b2b34 */
}


img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

/* === Accessibility: distinguish inline links on Legal page (Lighthouse / WCAG 1.4.1) === */
.legal-page p a,
.legal-page li a,
.legal-page small a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}


/* Keyboard-only focus indicator for links (ADA) */
a:focus-visible {
  outline: 2px solid #ffa500;     /* ThirstLock orange */
  outline-offset: 3px;
  text-decoration: underline;    /* non-color cue */
}


/* === Responsive Adjustments === */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    height: auto;
  }

  .header .logo span {
    font-size: 1.6rem;
    text-align: center;
  }

  /* Mobile hero: favor the hiker (top-right) and ease height a bit */
  .hero {
    background-position: 90% 20%;
    height: 80vh;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .gallery-row {
    flex-direction: column;
  }
}


/* === Hero Section === */
.hero {
  background: url("../assets/photos/sky_hiker.webp") no-repeat center
    center / cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.50);
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(50px);
}

.hero h2 {
  color: #fff;
  font-size: 3rem;
  margin-top: 2rem;
}

.hero-subhead {
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.75rem;
  font-weight: bold;
  margin-top: 1rem;
  max-width: 600px;
  text-align: center;
  line-height: 1.5;
}

/* === Intro Section === */
.intro-section {
  background-color: #1b2b34;
  padding: 1rem 1rem;
  width: 100%;
  text-align: center;  
}

.intro-section .content {
  max-width: 1200px;
  margin: 0 auto;
}

.intro-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 1rem;
}

.intro-section strong {
  color: #ffa500;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* === Features === */
.features {
  display: flex;
  justify-content: space-around;
  padding: 1rem 0.5rem;
  background-color: #fff;
}

.feature {
  text-align: center;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.feature h3 {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.feature p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem; /* or adjust to 0.75rem or 1.25rem to taste */
}

.features img {
  width: 150px;
  height: auto;
  margin-bottom: 0.5rem;
}

.feature-paracord h3 {
  margin-top: -22px;
}

.feature-icon-paracord {
  margin-top: -35px;
  margin-bottom: 0px; /* adjust as needed */
}

.feature-icon-secure {
  width: 100px !important;
  height: auto !important;
  margin-top: 0px;
  margin-bottom: -8px; /* adjust as needed */
}

.feature-secure h3 {
  margin-top: 20px;
}

.feature-icon-custom {
  margin-bottom: 0.4rem; /* adjust as needed */
}



/* === Bottle Leash vs Sling (Carry Types) === */
.carry-types {
  background-color: #1b2b34;
  padding: 2rem 1rem;
  border-bottom: 2px solid #ffa500; /* echo intro-section divider */
}

.carry-types-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.carry-type {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;  
}

.carry-type h3 {
  color: #ffa500;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.carry-type p {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mobile: stack cards */
@media (max-width: 768px) {
  .carry-types-inner {
    grid-template-columns: 1fr;
  }
}


/* === Gallery === */

/* Adjustable vertical spacing for entire gallery block */
.gallery {
  padding: 2.5rem 1rem 2.5rem; /* top | sides | bottom — adjust these to move the whole gallery */
}

/* Tight, responsive paracord mosaic (12 tiles) */
.color-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4×3 on desktop */
  gap: 0;                      /* boxes touch */
  width: 100%;
  max-width: 288px;           /* match gallery width cap */
  margin: 1rem auto 0 auto;    /* small separation from photos above */
}

.color-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;         /* perfect squares regardless of source size */
  object-fit: cover;           /* no distortion */
  display: block;              /* kill inline gaps */
}

/* Tablet: 3×4 (still a rectangle) */
@media (max-width: 900px) {
  .color-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Small phones: 2×6 (still a rectangle) */
@media (max-width: 520px) {
  .color-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tight, fixed-rectangle carabiner mosaic (8 tiles = 4×2) */
.carabiner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2×4 layout */
  gap: 0;                      /* boxes touch */
  width: 100%;
  max-width: 288px;            /* matches paracord grid width */
  margin: 1rem auto 0 auto;    /* small separation from paracord grid */
}

.carabiner-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;         /* perfect squares */
  object-fit: cover;
  display: block;
}

/* Main gallery grid: 3 columns, 3 "rows" */
.gallery-row {  
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 0;                   /* space between photos */
  max-width: 1200px;
  margin: 0 auto;
  /* rows now size to their tallest item (e.g., mosaics), keeping each row even */
}


/* Ensure main gallery images fill their grid cells */
.gallery-row > img {
  width: 100%;
  height: auto;
  display: block;
  /* natural aspect ratio, no forced cropping */
}

/* Thin internal seam between row 2 and 3 in column 2 */
.gallery-row > img:nth-child(5) {
  margin-bottom: 4px;
}


/* Unified rounded corners for all main gallery tiles:
   - the 6 standard images
   - the paracord mosaic tile
   - the carabiner mosaic tile
   Adjust 12px to taste. */
.gallery .gallery-row > img,
.gallery .color-grid,
.gallery .carabiner-grid {  
  overflow: hidden;
}

/* When used inside the main gallery, mosaics behave as tiles in the grid */
.gallery .color-grid,
.gallery .carabiner-grid {
  width: 100%;
  max-width: none;
  margin: 0;
}

.gallery .color-grid {
  margin-bottom: 5.75px; /* thin seam between paracord and carabiner mosaics */
}


@media (min-width: 1025px) {
  /* Paracord mosaic: top-right tile (column 3, row 1) */
  .gallery .color-grid {
    grid-column: 3;
    grid-row: 1;
  }

  /* Carabiner mosaic: same width, double height (rows 2–3 in column 3) */
  .gallery .carabiner-grid {
    grid-column: 3;
    grid-row: 2 / span 2;
  }
}




/* Mobile: 1-up */
@media (max-width: 768px) {
  .gallery-row {
    grid-template-columns: 1fr;
  }
}






/* === CTA === */
.cta-text {
  background-color: #eee;
  padding: 2rem;
  text-align: center;
}

.cta-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.cta-text p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  color: #444;
}

/* === Model Card Spacing Controls === */
:root {
  --card-padding-top: 1rem;
  --card-padding-sides: 1rem;
  --card-padding-bottom: 1rem;

  --card-image-bottom-gap: 1.25rem;
}


/* === THIRSTLOCK Model Chooser === */
.tl-model-chooser {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}


.tl-model-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
   padding:
    var(--card-padding-top)
    var(--card-padding-sides)
    var(--card-padding-bottom);
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(255, 138, 61, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.tl-model-card img {
  width: 100%;
  max-width: 260px; 
  margin: 0 auto var(--image-text-gap, 0.75rem);
  border-radius: 10px;
}

.tl-model-card h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.tl-model-card h3 .tm {
  font-size: 0.6em;
  position: relative;
  top: -.45em;
  vertical-align: baseline;
}


.tl-model-card p {
  font-size: 0.9rem;
  color: #cccccc;
  margin-bottom: 0.75rem;
}

.tl-model-cta {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #ff8a3d;
}

/* Hover / focus */
.tl-model-card:hover,
.tl-model-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  border-color: #ff8a3d;
}

/* ANCHOR */
.tl-model-card[data-model="anchor"] {
  --image-text-gap: 3rem;
}

/* HITCH */
.tl-model-card[data-model="hitch"] {
  --image-text-gap: 3rem;
}

/* SOLO (usually taller image) */
.tl-model-card[data-model="solo"] {
  --image-text-gap: 0.9rem;
}

/* OTHER CUSTOM BUILDS */
.tl-model-card[data-model="custom"] {
  --image-text-gap: 3rem;
}


/* Tablet: 2-up model chooser */
@media (max-width: 1024px) {
  .tl-model-chooser {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Mobile: stack cards */
@media (max-width: 540px) {
  .tl-model-chooser {
    grid-template-columns: 1fr;
  }

  .tl-model-card img {
    max-width: 220px;
  }
}


/* === Carousel === */
.product-carousel {
  background-color: #1b2b34;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;

  /* Carousel spacing knobs */
  --dots-to-arrows-gap: 0.75rem;   /* vertical: dots → arrows */
  --arrows-to-title-gap: 0.75rem;  /* vertical: arrows → product name */
}


.carousel-heading {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #ffa500;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

.carousel-container {
  display: flex; 
  gap: 2rem;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  opacity: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  display: flex;  
}


/* Extra breathing room above Custom Length Guide button */
.carousel-slide .custom-guide-trigger {
  margin-top: .5rem;
}

/* Extra spacing below BUILD CTA for Custom Length only */
.carousel-slide[data-product="custom"] .btn {
  margin-bottom: 1.25rem; /* adjust freely to taste */
}

/* Extra spacing below BUILD CTA for all models */
.carousel-slide[data-product="ANCHOR"] .btn,
.carousel-slide[data-product="HITCH"] .btn,
.carousel-slide[data-product="solo"] .btn,
.carousel-slide[data-product="custom"] .btn {
  margin-bottom: 1.25rem;
}





/* Image fills the slide-media width; no independent max-width math */
.carousel-slide .slide-media > img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  max-width: none; /* neutralize previous 220px cap */
  border-radius: 12px;
}


/* Positioned wrapper so spec banner anchors to the image, not the whole slide */
.slide-media {
  position: relative;
  display: inline-block; /* shrink-wrap */
  overflow: hidden;      /* clip any overhang at image edge */
  /* NEW: wrapper decides size; image fills this */
  width: min(350px, 80vw);
}

/* Image counter badge (e.g., "1 / 3") in the top-right of the image */
.slide-media .image-counter {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 500;
  pointer-events: none;       /* purely informational; clicks go to the image */
  z-index: 2;
}


/* Mini-gallery image fade */
.slide-media img {
  opacity: 1;  
}

/* When fading out before swap */
.slide-media img.is-fading {
  opacity: 1;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .slide-media img {
    transition: none;
  }
}


.carousel-slide h3 {
  font-size: 1.5rem;
  margin-top: var(--arrows-to-title-gap); /* controlled from .product-carousel */
  margin-bottom: 0.5rem;
}


.carousel-slide p {
  font-size: 1rem;
  margin-bottom: 1rem;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}


/* Mini-gallery dots placeholder (reserved space under image) */
.mini-dots {
  /* Easy tweak knobs for dot sizing + spacing */
  --dot-size: 12px;   /* change this to try bigger/smaller dots */
  --dot-gap:  10px;   /* change this to adjust spacing between dots */

  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--dot-size) + 10px); /* keeps layout stable */
  margin-top: 8px;           /* small breathing room below the image */
  gap: var(--dot-gap);       /* uses the adjustable spacing variable */
  margin-bottom: 0.75rem;    /* space above the product title */
  /* no background/border here; purely a layout reserve for now */
}

/* Mini-gallery dot visuals (classic minimalist) */
.mini-dot {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  color: #000;                          /* readable number */
  font-size: calc(var(--dot-size) * 0.55);
  font-weight: 600;
  
  display: flex;                         /* center number perfectly */
  align-items: center;
  justify-content: center;

  transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease;
  opacity: 0.9;
  user-select: none;                     /* no accidental text selection */
}




/* Active/hover/focus states */
.mini-dot.active {
  background: #ffa500;                    /* ThirstLock orange */
  opacity: 1;
  transform: scale(1.1);
}

.mini-dot:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* When we later make dots focusable, ensure visible focus ring */
.mini-dot:focus {
  outline: 2px solid #ffa500;
  outline-offset: 3px;
}


/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .mini-dot {
    transition: none;
  }
}

/* === Slide controls row: center dots, right-align Expand === */
.slide-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 8px; /* same visual spacing you already use */
  width: 100%;
}

/* Center column: dots remain perfectly centered */
.slide-controls .mini-dots {
  grid-column: 2;
  justify-content: center;
}

/* Right column: Expand button */
.slide-controls .tl-lightbox-expand {
  grid-column: 3;
  justify-self: end;
  margin-right: 15.75rem;
}


/* Ensure slide is a positioned ancestor for overlay elements */
.carousel-slide {
  position: relative;
}

/* Thin, semi-transparent banner over image bottom (above dots)
   NOTE: Specificity bump (.carousel-slide .slide-media > .spec-banner) to beat stray rules */
.carousel-slide .slide-media > .spec-banner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;                 /* sits just above the dot row */
  width: 100%;                  /* equals .slide-media (image) width */
  box-sizing: border-box;       /* padding stays inside width */
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1;
  z-index: 3;
  pointer-events: none;         /* visual-only for now */
  white-space: nowrap;          /* keep single line */
  overflow: hidden;             /* prevent right-edge spill */
  text-overflow: ellipsis;      /* … when too narrow */
  transform: none;
}

/* Small-screen comfort tweak */
@media (max-width: 480px) {
  .carousel-slide .slide-media > .spec-banner {
    font-size: 0.85rem;
    padding: 5px 10px;
  }
}


/* Label swapping: default to "Click..." */
.spec-banner .label-click { display: inline; }
.spec-banner .label-tap   { display: none; }

/* On touch devices (no hover), show "Tap..." instead */
@media (hover: none) and (pointer: coarse) {
  .spec-banner .label-click { display: none; }
  .spec-banner .label-tap   { display: inline; }
}


/* === Specs Dialog === */
.spec-dialog[hidden] { display: none !important; }
.spec-dialog {
  position: fixed;
  inset: 0;
  z-index: 999; /* above everything else */
}

.spec-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.spec-dialog__panel {
  position: relative;
  max-width: 900px;
  margin: 5vh auto;
  background: #ffffff;
  color: #1b2b34;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.spec-dialog__title {
  font-size: 1.25rem;
  margin: 0 0 12px 0;
  color: #1b2b34;
}

.spec-dialog__close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #1b2b34;
}
.spec-dialog__close:focus {
  outline: 2px solid #ffa500;
  outline-offset: 2px;
}

.spec-dialog__content {
  display: grid;
  gap: 12px;
}

.spec-dialog__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  background: #f2f2f2; /* placeholder bg while image loads */
}

.spec-dialog__text {
  font-size: 0.95rem;
  color: #333333;
}

/* Mobile: full-screen sheet for readability */
@media (max-width: 768px) {
  .spec-dialog__panel {
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
    max-width: 100%;
    padding: 16px;
  }
}

/* Scroll lock helper when dialog is open */
body.no-scroll { overflow: hidden; }

/* Dialog open/close animation (fade/scale) */
.spec-dialog__backdrop {
  opacity: 0;
  transition: opacity 180ms ease;
}

.spec-dialog__panel {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

/* When dialog is marked open, fade in backdrop and panel */
.spec-dialog.is-open .spec-dialog__backdrop {
  opacity: 1;
}

.spec-dialog.is-open .spec-dialog__panel {
  opacity: 1;
  transform: scale(1);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .spec-dialog__backdrop,
  .spec-dialog__panel {
    transition: none;
    transform: none;
    opacity: 1;
  }
}



/* === Buttons === */
.btn {
  display: inline-block;
  background-color: #ff8a3d;
  color: #1b2b34;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #ffa500;
}

/* Prevent wrapping so we measure true single-line width */
.product-carousel .btn {
  white-space: nowrap;
  display: inline-block; /* ensures width/min-width apply cleanly */
}

/* keep build buttons one line and center text */
.product-carousel .btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn {
  background: none;
  border: 2px solid #ff8a3d;
  color: #ff8a3d;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease;
}

.carousel-btn:hover {
  background-color: #ff8a3d;
  color: #1b2b34;
}

.carousel-heading {
  font-family: "Space Grotesk", sans-serif;
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.brand-highlight {
  font-family: "Sarpanch", sans-serif;
  color: #ffa500; /* ThirstLock orange */
  font-size: 1.2em;
}

.brand-highlight {
  font-family: "Sarpanch", sans-serif;
  color: #ffa500;
  font-size: 1.2em; /* NEW: increase size slightly */
}

.brand-highlight .tm {
  font-family: "Sarpanch", sans-serif;
  color: #ffa500;
  font-size: 0.35em; /* smaller */
  position: relative;
  top: 0.6em; /* lower it slightly */
}

@media (max-width: 768px) {
  /* Still let wrapper decide; image stays 100% of wrapper */
  .carousel-slide .slide-media > img {
    max-width: none;
    width: 100%;
  }

  /* MOBILE HERO OVERRIDE
     - Re-declare the full background so it beats the desktop rule
     - Bias crop toward the right/top where the hiker is
  */
  .hero {
    background: url("../assets/photos/sky_hiker.webp") no-repeat 55% 20% / cover;


    height: 90vh;
  }
}

/* === THIRSTLOCK Lightbox === */
.tl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-lightbox[hidden] {
  display: none !important;
}

.tl-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(3px);
}

.tl-lightbox-img {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  z-index: 2;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  cursor: zoom-out;
}


/* Product nav row inside each slide: arrows + product name */

/* === Modal Carousel Arrow Fix === */
/* When carousel lives inside the modal, center arrows relative to image width */

.tl-model-gallery .product-nav-row {
  width: 100%;
  max-width: 360px; /* matches slide-media width */
  margin-left: auto;
  margin-right: auto;
  justify-content: space-between;
}

.tl-model-gallery .product-nav-row .carousel-btn {
  margin: 0; /* override old huge offsets */
}

/* Desktop cleanup */
@media (min-width: 769px) {
  .tl-model-gallery .product-nav-row .slide-prev,
  .tl-model-gallery .product-nav-row .slide-next {
    margin: 0;
  }
}



.product-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: var(--dots-to-arrows-gap); /* controlled from .product-carousel */
}


/* mini-dots already have their own margins in the main .mini-dots rule */



@media (max-width: 768px) {
  
  /* Mobile: hide the big side arrows, use inline slide nav instead */
  #carousel-prev,
  #carousel-next {
    display: none;
  }
  /* Arrows inside product-nav-row on mobile */
  .product-nav-row .carousel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;          /* tweak if you want them a bit smaller/bigger */
    padding: 0.25rem 0.75rem;   /* tweak for touch comfort */
  }

  /* Product title spacing now tied to the nav row */
  .product-nav-row h3 {
    margin: 0; /* let the row handle spacing */
  }

  /* Keep the whole row centered; no big offsets needed now */
 
  .product-nav-row .slide-prev { margin-right: 8rem; }
.product-nav-row .slide-next { margin-left: 8rem; }



}


@media (min-width: 769px) {
  /* Centered product nav row on desktop */
.product-nav-row .slide-prev { margin-right: 20rem; }
.product-nav-row .slide-next { margin-left: 20rem; }

}

/* Nudge ANCHOR price left so it visually centers under the word, not the ™ */
.anchor-price, .hitch-price {
  display: inline-block;
  transform: translateX(-0.25em); /* tweak this value to taste */
}

.custom-guide-trigger {
  background: transparent;
  color: #ff8a3d;                /* THIRSTLOCK orange */
  border: 1px solid #ff8a3d;     /* thin orange border */
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-block;

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Hover: faint orange glow */
.custom-guide-trigger:hover {
  background-color: rgba(255, 138, 61, 0.12);
  box-shadow: 0 0 12px rgba(255, 138, 61, 0.45);
}

/* Remove default focus outline and replace with orange ring */
.custom-guide-trigger:focus-visible {
  outline: 2px solid #ffb733;
  outline-offset: 3px;
}


/* ===== TL Model Gallery Modal ONLY (scoped) ===== */
#tlModelGalleryModal.tl-overlay {
  place-items: center;
  padding: 1rem;
}

#tlModelGalleryModal .tl-card.tl-model-gallery {
  width: min(960px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tl-slide-title {
  display: flex;
  align-items: baseline;
  gap: 2rem; /* adjust freely: 0.5–1.25rem */
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

 .tl-slide-title .tm {
  font-size: 0.8em;
  position: relative;
  top: -0.1em;
}



#tlModelGalleryModal .tl-card.tl-model-gallery::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px; /* intentionally tall to overlap readable content */
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(27, 43, 52, 0),
    rgba(27, 43, 52, 0.98)
  );
}

/* Hide scroll fade when modal is fully scrolled */
#tlModelGalleryModal .tl-card.tl-model-gallery.is-at-bottom::after {
  opacity: 0;
}


/* Modal close button — keep clear of scrollbar */
.tl-card.tl-model-gallery .tl-close {
  right: 3rem;
}



#tlModelGalleryModal .tl-body.tl-model-gallery-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1.25rem;
}

#tlModelGalleryModal .tl-body.tl-model-gallery-body::after {
  content: "";
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(27, 43, 52, 0),
    rgba(27, 43, 52, 0.85)
  );
}



/* Step 2: scroll the gallery content inside the bounded modal */
#tlModelGalleryModal .carousel-wrapper {
  flex: 0 0 auto;
  overflow: visible;
}


/* Step 3: Fixed image viewport (ONLY inside the model gallery modal) */
#tlModelGalleryModal .slide-media {
  width: min(520px, 92vw);
  aspect-ratio: 4 / 3;          /* pick 4/3 for “product photo” feel */
  overflow: hidden;
  border-radius: 12px;
  background: transparent; /* remove lighter frame */
  display: flex; 
  align-items: center;
  justify-content: center;
}

/* Make the image fill the viewport consistently */
#tlModelGalleryModal .slide-media > img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain !important;
  object-position: center center;
  margin: 0;
  border-radius: 12px; /* visible rounding even on narrow images */  
}


/* === TL Model Gallery Modal: disable vertical centering to prevent clipping === */
#tlModelGalleryModal.tl-overlay {
  place-items: start center;
}

.cta-blue h2,
.cta-blue p {
  color: #020617;  /* your ThirstLock blue */
}



.fill-blank {
  display: inline-flex;
  flex-direction: column;
  align-items: center;

  min-width: 10ch;   /* controls underline length */
  margin: 0 0.25em;

  border-bottom: 2px solid currentColor;
}

.fill-blank em {
  font-style: italic;
  font-size: 0.65em;
  line-height: 1;
  margin-bottom: 0.15em;
  opacity: 0.85;
}


















