h1  { font-size: 26px; }
h2  { font-size: 24px; }
h3  { font-size: 20px; }


@media (max-width: 700px) {
    h1  { font-size: 16px; }
    h2  { font-size: 20px; }
    h3  { font-size: 20px; }
}



.masthead {
    position: sticky;
    top: 0;
    height: 70px;
    padding: 8px 10px 8px 10px;
    color: var(--color-fontlt);
    background-color: #000000;
    z-index: 1000;
}


.defTitle {
    height: 150px;
    margin: 10px 10px;
    padding: 10px 5px 10px 5px;
    text-align: center;
    background-position: center;
    background-size: cover;
    background-color:#d8d6d6;
    border-radius: 10px;
    @media (max-width: 700px) { height: 100px; }
}

.defTitle-inner {
    display: inline-block;
    margin: 15px 0 0 0;
    padding: 10px 20px 10px 20px;
    text-align: center;
    color: #ffffff;
    background-color:rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}




.blockTitle {
    margin: 10px 10px;
    padding: 10px 5px 10px 5px;
}



.breadcrumbs {
    display: block;
    padding: 5px 0 5px 15px;
    text-align: left;

    color:#5c5757;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    line-height: 110%;
    font-size: clamp(24px, 2vw, 37px);    
}

.breadcrumb-prev {
    color:#c08b46 !important;
}

.breadcrumbs a {
    color: #b89d7c;
}

/*
.breadcrumbs {
    font-size: 20px;
    display: block;
    padding: 5px 0 5px 0;
    text-align: center;
}

.breadcrumbs a {
    color: rgb(255, 155, 55);;
}


@media (max-width: 700px) {
    .breadcrumbs {
        font-size: 14px;
        }
}

*/


.glossary-term {
    font-size: var(--font-size-large);
}

.glossary-desc {
    margin: 0 0 0 20px;
    padding: 0 0 0 10px;
    border-color: #666666;
    border-style: solid;
    border-width: 0 0 0 3px;;
}





.nice-table {
  display: grid;
  grid-template-columns: 150px 1fr; /* Set column widths */
  overflow: hidden;
  max-width: 600px;
}

.nice-table dt,
.nice-table dd {
  margin: 0;
  padding: 5px 0 0 5px;
}

.nice-table dt {
  font-weight: bold;
  background-color: #f1f3f5;
  color: #333;
}

.nice-table dd {
  background-color: #ffffff;
  border-left: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

/* Zebra striping for rows */
.nice-table dt:nth-of-type(even) {
  background-color: #f8f9fa;
}

.nice-table dd:nth-of-type(even) {
  background-color: #fdfdfd;
}




.dateList {
    display: grid;
    gap: 3px;
    grid-template-columns: repeat(7, 1fr);
    justify-content: center;
}

.dateBox {
    background-color: #0aac40;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 10px;
    min-width: 30px;
    max-width: 50px;
    text-align: center;
}

.dateBox.blocked {
    background-color: #000000;
    text-decoration: line-through;
    color: rgb(128, 126, 126);
}



.footer {
    padding: 10px 10px 60px 10px;
    font-size: var(--font-size-medium);
    color: #a3a3a3;
    background-color:#000000;
}

.footer a {
    color: #a3a3a3;
}

.footer-cols {
    display: grid;
    gap: 20px;
}


.dlink {
    color: #44260d;
}


.fstroke {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #000;
}

.fstrokei {
    font-style: italic;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #000;

}

.fblockc {
    color:#b18449 !important;

}

.fblock {
    color:#363636;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    line-height: 110%;
    font-size: clamp(30px, 7vw, 80px);
    
}

.fblock-norm {
    color:#363636;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    line-height: 110%;
    font-size: clamp(24px, 2vw, 37px);
}

.fblock-std {
    color:#363636;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    line-height: 110%;
}





.stdContent {
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
}

/* copies fblock , use fstroke as needed on parts*/
.stdContentH1 { 
    font-family: 'Anton', sans-serif;
    font-size: clamp(30px, 7vw, 80px);    
    text-transform: uppercase;
    line-height: 110%;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.stdContentH2 { 
    margin-top: 30px;
    color: #2c3e50;
}




/* Desktop / wide screens */
@media (min-width: 800px) {
    .footer-cols {
        grid-template-columns: 1fr 1fr 1fr 1fr; /* 2 columns */
    }
}




/*

    Vehicle Class

*/

.vcselect-wrapper {
    background-color: #8d8c8c; /* #8d8c8c; */
}

.vcselect-grid {
    display: grid;
    gap: 10px; /* row + column gap */
    padding: 5px;
    grid-template-columns: repeat(4, 1fr);
}

.btnVehClass {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    padding: 0 0 3px 0;
    cursor: pointer;
    background-color:#bbbba6;
    container-type: inline-size; /* <— THIS is the container */
}

.btnVehClassSel {
    color: #000000;
    background-color: #dbb786 ;
}

.btnVehClass img {
    object-fit: contain;
    width: 100%;
    max-width: 100px;
    aspect-ratio: 2 / 1;
}

.btnImgWrap {
    flex: 1;
    display: flex;
    /* align-items: center;   */ /* vertical center */
    justify-content: center; /* horizontal center */
}




.vcLabel {
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.vcLabel .vclong { display: inline; }
.vcLabel .vcshort { display: none; }






/* measure the button width */
@container (max-width: 154px) {
    .vcLabel .vclong { display: none; }
    .vcLabel .vcshort { display: inline; }
}



@media (min-width: 900px) {
    .vcselect-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}



/*

    Vehicle Types

*/
/* Grid layout */
.type-grid {
    display: grid;
    gap: 15px;
    row-gap: 50px;
    grid-template-columns: 1fr; /* mobile default */
    padding: 20px 0;
}

/* 2 across on medium screens */
@media (min-width: 600px) {
    .type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 4 across on wide screens */
@media (min-width: 1100px) {
    .type-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Card styling */
.type-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 8px 14px 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%; /* ensures equal height */
}



/* Vehicle image */
.type-img {
    width: 100%;
    height: 200px;          /* taller than wide */
    object-fit: cover;      /* crops nicely */
    border-radius: 10px;
    margin-bottom: 0px;
}

/* Text area */
.type-text {
    font-size: 0.9rem;
    margin-top: auto;       /* pushes text to bottom if needed */
}





/* Vehicle info page */
/* Base styles for visibility */
.vehinfo-container {
  display: grid !important;
  gap: 10px;
}

.vehinfo-box-a { width: 416px; padding: 0 8px 0 8px; }
.vehinfo-box-b { width: 100%; padding: 0 8px 0 8px; }
.vehinfo-box-c { min-width: 250px; padding: 0 8px 0 8px; }


/* 1. Large Screens (Desktop): A | B | C */
@media (min-width: 1024px) {
  .vehinfo-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .vehinfo-box-a { order: 1; }
  .vehinfo-box-b { order: 2; }
  .vehinfo-box-c { order: 3; }
}

/* 2. Medium Screens (Tablet): A | C on top row, B on bottom row */
@media (min-width: 700px) and (max-width: 1023px) {
  .vehinfo-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .vehinfo-box-a { order: 1; }
  .vehinfo-box-c { order: 2; }
  .vehinfo-box-b { 
    order: 3; 
    grid-column: span 2; /* Makes B stretch across the second row */
  }
}

/* 3. Small Screens (Mobile): Stacked vertically as A, then C, then B */
@media (max-width: 599px) {
  .vehinfo-container {
    grid-template-columns: 1fr;
  }
  .vehinfo-box-a { order: 1; }
  .vehinfo-box-c { order: 2; }
  .vehinfo-box-b { order: 3; }
}





/* The container class */
.floating-details {
  position: relative;
  display: inline-block; /* Keeps the trigger tightly sized to its text */
}

/* Style everything inside EXCEPT the summary */
.floating-details > *:not(summary) {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  
  /* FIXES THE WIDTH CONSTRAINT */
  width: max-content;   /* Expands box to fit its internal content */
  /* max-width: 300px; */     /* Optional: Sets an upper limit so it doesn't get too wide */
  white-space: normal;  /* Allows text to wrap normally inside that max-width */

  /* Visual styling */
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}




/* RFQ Page box */
.rfq-page-box {
    width: 600px;
    padding: 9px 9px;
    border-radius: 9px;
    background-color: #e9e6e4;

    @media (max-width: 700px) {
        width: 100%;
        }
}


/* RFQW box */
.rfq-box {
    width: 280px;
    padding: 9px 9px;
    border-radius: 9px;
    background-color: #e9e6e4;

    @media (max-width: 700px) {
        width: 100%;
        }
}

/* Inquiry box */
.inquiry-box {
    width: 280px;
    padding: 9px 9px;
    border-radius: 9px;
    background-color: #e9e6e4;

    @media (max-width: 700px) {
        width: 100%;
        }
}

/* Contact box */
.contactus-box {
    width: 400px;
    padding: 9px 9px;
    border-radius: 9px;
    background-color: #e9e6e4;

    @media (max-width: 700px) {
        width: 100%;
        }
}






.dates-desktop {
    position: sticky;
    top: 5px;
    float: right;
    margin: 5px 5px 0 0;
    width: 500px;
    height: 60px;
    /* padding: 2px 10px env(safe-area-inset-bottom) 10px; */
    padding: 6px 10px 8px 10px;
    color: #1b1b1b;
    background-color: #f1eeec;
    border-radius: 9px;
    z-index: 1000;
}

/* bottom dates for mobile */
.dates-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* padding: 2px 10px env(safe-area-inset-bottom) 10px; */
    padding: 6px 10px 8px 10px;
    color: #eeeeee;
    background-color: #000000;
    z-index: 1000;


    /* Force iOS to treat it as an isolated layer */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    
    /* Block iOS momentum scrolling from detaching the div */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    
    /* Ensure it responds to the dynamic mobile viewport */
    position: -webkit-fixed;     
}


.txtButton {
    padding: 2px 15px 1px 15px;
    text-align: center;
    background-color: #0a0a0a;
    border-radius: 6px;
    cursor: pointer;
}

.txtButton:hover {
    background-color: #202020;
}



/* Dark semi-transparent background stretching over the entire window */
.tv-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85); /* Tweak the 0.85 for darkness preference */
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Make sure the full-size image scales smoothly within the viewport dimensions */
.tv-lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}


.linkText {
    color: var(--color-font);
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--color-accent);
}