/* ===========================
   SPECIFICATIONS TABLE STYLES
   =========================== */
@font-face {
    font-family: 'DeltaSans';
    src: url('./fonts/DeltaSans-Regular.eot');
    src: url('./fonts/DeltaSans-Regular.eot?#iefix') format('embedded-opentype'),
    url('./fonts/DeltaSans-Regular.woff2') format('woff2'),
    url('./fonts/DeltaSans-Regular.woff') format('woff'),
    url('./fonts/DeltaSans-Regular.ttf') format('truetype'),
    url('./fonts/DeltaSans-Regular.svg#DeltaSans-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DeltaSans';
    src: url('./fonts/DeltaSans-SemiBold.eot');
    src: url('./fonts/DeltaSans-SemiBold.eot?#iefix') format('embedded-opentype'),
    url('./fonts/DeltaSans-SemiBold.woff2') format('woff2'),
    url('./fonts/DeltaSans-SemiBold.woff') format('woff'),
    url('./fonts/DeltaSans-SemiBold.ttf') format('truetype'),
    url('./fonts/DeltaSans-SemiBold.svg#DeltaSans-SemiBold') format('svg');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

.specifications-section {
    padding: 80px 0;
}

.specifications-section h1 {
    text-align: center;
    margin-bottom: 60px;
    color: #fff;
}

.specifications-table-container {
    overflow-x: auto;
    border-radius: 12px;

}

/* Clip container to rounded corners on accordion specs variants */
.specifications-section.section.faq .specifications-table-container {
  overflow: hidden !important;
  border-radius: 12px !important;
}

.specifications-table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: linear-gradient(135deg, #1a2a5a 0%, #0d1a3a 100%);
    border-radius: 12px;
    overflow: hidden;
    font-family: 'DeltaSans', Inter, sans-serif, Arial;
    table-layout: fixed; /* ensure stable column widths for alignment */
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
}

.specifications-table thead tr {
    background: linear-gradient(135deg, #2a3a6a 0%, #1a2a4a 100%);
}

.specifications-table th {
    padding: 20px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specifications-table th:last-child {
    border-right: none;
}

.specifications-table th .spec-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.specifications-table th .spec-header img {
    width: 126px;
    height: 126px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.specifications-table .spec-category {
    background: transparent;
    width: 200px;
}

.specifications-table .spec-model {
    min-width: 130px;
    background: rgba(185, 235, 95, 0.1);
    color: #b9eb5f;
}

.specifications-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.specifications-table tbody tr:last-child {
    border-bottom: none;
}

.specifications-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.specifications-table td {
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

.specifications-table td:last-child {
    border-right: none;
}

.specifications-table .spec-label {
    background: rgba(42, 58, 106, 0.3);
    font-weight: 600;
    text-align: left;
    padding-left: 24px;
    color: #b9eb5f;
    border-right: 2px solid rgba(185, 235, 95, 0.3);
}

.specifications-table .spec-unified {
    background: rgba(255, 255, 255, 0.02);

}

/* Column highlighting styles for DC6 functionality */
.highlight-column {
    color: #00d4ff !important;
    animation: singleBlink 1.5s ease-in-out;
}

/* Common specifications highlighting styles */
.highlight-common-spec {
    color: #b9eb5f !important;
    animation: singleBlink 1.5s ease-in-out;
}

@keyframes singleBlink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
    }
}

/* Enhanced table cell highlighting - only color change */
.specifications-table td.highlight-column,
.specifications-table th.highlight-column {
    color: #00d4ff !important;
}

/* Common specifications highlighting */
.specifications-table td.highlight-common-spec {
    color: #b9eb5f !important;
}

/* No additional styles for header */
.specifications-table th.highlight-column {
    color: #00d4ff !important;
}

/* Axis specs table: make first column narrower to free space for other columns */
.specifications-table.axis-spec-table .spec-category {
    width: 120px !important;
}

.specifications-table.axis-spec-table td.spec-label {
    width: 120px !important;
    white-space: nowrap !important;
}

/* Make the “Delta D-Bot Grand Flexibility” heading slightly smaller */
#specifications-table > .container-inner > h1.bottom-line {
    font-size: clamp(2.0rem, 1.2rem + 2.2vw, 3.0rem) !important;
    line-height: 1.08 !important;
}

/* Centered variant fallback */
.specifications-section#specifications-table h1.bottom-line {
    font-size: clamp(2.0rem, 1.2rem + 2.2vw, 3.0rem) !important;
}

/* Responsive tweaks to keep first column compact on smaller screens */
@media (max-width: 991.98px) {
    .specifications-table.axis-spec-table .spec-category {
        width: 100px !important;
    }

    .specifications-table.axis-spec-table td.spec-label {
        width: 100px !important;
    }
}

@media (max-width: 767.98px) {
    .specifications-table.axis-spec-table .spec-category {
        width: 90px !important;
    }

    .specifications-table.axis-spec-table td.spec-label {
        width: 90px !important;
    }
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .specifications-table {
        font-size: 13px;
    }

    .specifications-table th,
    .specifications-table td {
        padding: 12px 8px;
    }

    .specifications-table .spec-label {
        padding-left: 16px;
    }
}

@media (max-width: 991.98px) {
    .specifications-section {
        padding: 60px 0;
    }

    .specifications-table {
        font-size: 12px;
    }

    .specifications-table th,
    .specifications-table td {
        padding: 10px 6px;
    }

    .specifications-table .spec-category {
        width: 140px;
    }
}

@media (max-width: 767.98px) {
    .specifications-section {
        padding: 40px 0;
    }

    .specifications-section h1 {
        margin-bottom: 40px;
        font-size: 28px;
    }

    .specifications-table-container {
        margin: 0 -20px;
        border-radius: 0;
    }

    .specifications-table {
        border-radius: 0;
        font-size: 11px;
    }

    .specifications-table th,
    .specifications-table td {
        padding: 8px 4px;
    }

    .specifications-table .spec-label {
        padding-left: 8px;
        font-size: 10px;
    }

    .specifications-table .spec-category {
        width: 100px;
    }
}

@media (max-width: 575.98px) {
    .specifications-table th {
        font-size: 10px;
    }

    .specifications-table td {
        font-size: 9px;
    }

    .specifications-table .spec-label {
        font-size: 9px;
    }
}

.spec-models-strip {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin: 0 auto 32px;
    max-width: 80%;
    padding: 0 1rem;
}

.spec-models-strip .model {
    flex: 1;
    text-align: center;
    position: relative;
}

.spec-models-strip .model img {
    width: 100%;
    max-width: 140px;
    height: auto;
    object-fit: contain;
    display: inline-block;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.spec-models-strip .model .label {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .5px;
}

@media (min-width: 768px) {
    .spec-models-strip {
        display: grid;
        grid-template-columns: 200px repeat(6, 1fr);
        gap: 0;
        padding: 0 0 0px;
    }

    .spec-models-strip .spacer {
        width: 200px;
    }

    .spec-models-strip .model {
        width: 100%;
    }

    .spec-models-strip .model img {
        max-width: 120px;
    }
}

@media (min-width: 1400px) {
    .spec-models-strip .model img {
        max-width: 150px;
    }
}

@media (max-width: 991.98px) {
    .spec-models-strip {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 2rem;
    }

    .spec-models-strip .model {
        flex: 0 0 30%;
    }

    .spec-models-strip .model img {
        max-width: 120px;
    }
}

/* Remove old absolute header image hack */
@media (min-width: 992px) {
    .specifications-table-container {
        padding-top: 0;
    }

    .specifications-table th .spec-header img {
        display: none !important;
    }
}

.specifications-table th .spec-header img {
    display: none;
}



/* --- Width and caption spacing adjustments --- */
/* Make the table 20% wider on medium+ screens to give columns more room */
@media (min-width: 768px) {
  .specifications-table {
    width: 100% !important;  /* 20% wider than its container */
    min-width: 100% !important;
  }
  .specifications-table-container {
    overflow-x: auto; /* ensure horizontal scrolling if needed */
  }
}

/* On small screens keep it at container width to avoid excessive scroll */
@media (max-width: 767.98px) {
  .specifications-table {
    width: 100% !important;
    min-width: 100% !important;
  }
}

/* Add space between caption text and the table */
.specifications-table > caption {
  caption-side: top;            /* ensure caption sits above the table */
  padding-bottom: 16px;         /* space between caption and header row */
  font-weight: 700;             /* keep caption prominent */
  color: #fff;                  /* match table theme */
  text-align: left;             /* align with first column */
}

/* Fallback caption if no <caption> element is present */
.specifications-table[aria-label]::before {
  content: attr(aria-label);
  display: none; /* render like a caption */
  caption-side: top;
  padding-bottom: 16px;
  font-weight: 700;
  color: #fff;
  text-align: left;
}
.specifications-table[data-caption]::before {
  content: attr(data-caption);
  display: table-caption;
  caption-side: top;
  padding-bottom: 16px;
  font-weight: 700;
  color: #fff;
  text-align: left;
}

/* If no <caption> and no aria/data caption, create spacing shim only */
.specifications-table:not(:has(> caption)):not([aria-label]):not([data-caption])::before {
  content: "";
  display: table-caption;
  caption-side: top;
  padding-bottom: 16px;
}
/* If a real caption exists, ensure the shim is disabled (safety) */
.specifications-table:has(> caption)::before {
  content: none !important;
  display: none !important;
}

/* FAQ/Specifications accordion arrow and layout (non-intrusive) */
.faq-box .faq-item .faq-question {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* arrow on the left, content starts together */
  gap: 10px; /* small space between arrow and label */
}
.faq-box .faq-item .faq-question .chev {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-right: 10px; /* spacing to the right of the icon */
  margin-left: 0;      /* no left margin when icon is on the left */
  transform-origin: 50% 50%;
  transition: transform .25s ease;
  opacity: .95;
}
/* Closed = arrow points down; ensure default rotation to 0deg for down */
.faq-box .faq-item .faq-question .chev { transform: rotate(0deg); }
/* Open = parent .active rotates arrow up */
.faq-box .faq-item.active .faq-question .chev { transform: rotate(180deg); }

/* Normalize spacing for specifications accordion containers */
.specifications-section.section.faq .faq-box {
  margin: 0;
  padding: 0; /* spacing handled by section wrappers */
}
.specifications-section.section.faq .faq-item {
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  padding: 14px 16px;
}
.specifications-section.section.faq .faq-item + .faq-item { margin-top: 10px; }

/* Icon/text list normalization under info blocks around specs (consistent sizes and font) */
.info-blocks-rightcol .spec-info-row .icon-col img,
.spec-info-row .icon-col img {
  width: clamp(60px, 5.2vw, 86px);
  height: clamp(60px, 5.2vw, 86px);
  object-fit: contain;
  display: block;
}
.info-blocks-rightcol .spec-info-row .content-col .title,
.spec-info-row .content-col .title {
  font-weight: 800; /* unify semi-bold/700+ */
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.2;
}
.info-blocks-rightcol .spec-info-row .content-col ul,
.spec-info-row .content-col ul {
  list-style: disc;
  margin: 0;
  padding-left: 18px;
  color: #e5f0fb;
}
.info-blocks-rightcol .spec-info-row,
.spec-info-row {
  display: grid;
  grid-template-columns: clamp(60px, 5.2vw, 86px) 1fr;
  gap: clamp(22px, 2.4vw, 32px);
  align-items: flex-start;
}

/* Consistent paddings around spec section to mirror navbar gutters via page wrappers */
@media (max-width: 579px){
  .specifications-section.section.faq { padding-left: 4vw !important; padding-right: 4vw !important; }
}

/* Ensure accordion answer animates height smoothly without layout jump */
.faq-box .faq-answer {
  overflow: hidden;
  transition: max-height .25s ease;
}

/* Ensure rounded corners render on table cells at corners */
.specifications-table thead tr th:first-child {
    border-top-left-radius: 12px;
}
.specifications-table thead tr th:last-child {
    border-top-right-radius: 12px;
}
.specifications-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}
.specifications-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* Partner/detail specs: keep table aligned to its container width */
.specifications-section.section.faq .specifications-table {
  width: 100% !important;
  min-width: 100% !important;
}

/* Cobots Grand Flexibility table width cap for medium-large viewports */
@media (min-width: 1100px) and (max-width: 1500px) {
  /* Keep the section within its grid column (no full-bleed) */
  #specifications-table {
    position: static !important;
    width: auto !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* Narrower width (~30% less than 66.5vw => ~46.6vw), centered in its column */
  #specifications-table .container-inner {
    max-width: 46.6vw !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  #specifications-table .specifications-table-container {
    max-width: 46.6vw !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #specifications-table .specifications-table {
    width: 100% !important;
    min-width: 100% !important;
  }
  /* Ensure we stay in the right column; do not span across */
  .introducing-block.text-right .img-area {
    grid-column: auto !important;
    width: auto !important;
  }
}
