

/* =========================================== Custom ====================================================== */


/* ---------------- Video Wrapper ---------------- */

/* Responsive video embed */
.video-wrapper {
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  min-height: 240px; /* fallback height in case aspect-ratio isn't supported */
}

/* Modern approach: aspect-ratio */
.video-wrapper.ratio-16x9 {
  aspect-ratio: 16 / 9;
}

.video-embed {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 576px) {
  .video-wrapper { border-radius: 8px; min-height: 180px; }
}


/* ---------------- Nexus Cloud Isolation ---------------- */
/* Prevent the cloud section from crossing into other sections on any device */
#nexus-cloud {
  position: relative;
  overflow: hidden;           /* clip any scaled children */
  isolation: isolate;         /* start a new stacking context */
  z-index: 0;                 /* keep it within normal stacking order */
  padding-block: clamp(40px, 8vh, 120px); /* spacing without overlap */
}

/* New static layout */
#nexus-cloud .cloud-inner {
  position: relative;
  overflow: hidden;
}

#nexus-cloud .cloud-image{
  width: clamp(400px, 70vw, 1100px);
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 992px) {
  #nexus-cloud {
    padding-block: clamp(32px, 7vh, 96px);
  }
}

/* ---------------- About: Feature Icons ---------------- */
.about-icons {
  display: grid;
  grid-template-columns: 1fr; /* Mobile default: 1 column */
  gap: 1.25rem;
  align-items: start;
}
.about-icon {
  text-align: center;
  border-radius: 0.5rem;
  padding: 0.75rem 0.5rem;
  transition: transform 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}
.about-icon img {
  width: 64px;
  height: auto;
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: transform 200ms ease, filter 200ms ease;
}
.about-icon p {
  margin: 0;
  transition: opacity 200ms ease;
}

@media (max-width: 576px) {
  .about-icon img { width: 56px; }
}

/* Tablet: 2 columns */
@media (min-width: 576px) and (max-width: 991.98px) {
  .about-icons {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

/* Desktop: 3 columns (results in 2 rows for 6 items) */
@media (min-width: 992px) {
  .about-icons {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

/* Hover & keyboard focus micro-interaction */
.about-icon:hover,
.about-icon:focus-within {
  transform: none;
  background-color: transparent;
  box-shadow: none;
}
.about-icon:hover img,
.about-icon:focus-within img {
  transform: none;
  filter: none;
}
.about-icon:hover p,
.about-icon:focus-within p {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .about-icon,
  .about-icon img,
  .about-icon p {
    transition: none;
  }
}

/* =========================================
   Home EX Image Size
   ========================================= */

/* Ensure slide is a positioning context */
#home .slide-wrap {
  position: relative;
}

/* Hero wrapper: span viewport, center content */
#home .nexus-hero-image {
  position: relative;
  z-index: 5;
  width: 100vw;                 /* critical for % scaling */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding-top: clamp(80px, 12vh, 140px);
  padding-bottom: 10px;
}

/* Image scaling + opacity fix */
#home .nexus-hero-image img {
  width: 30%;
  max-width: 600px;
  height: auto;

  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* Responsive down-scaling */
@media (max-width: 1600px) {
  #home .nexus-hero-image img { width: 60%; }
}

@media (max-width: 1200px) {
  #home .nexus-hero-image img { width: 60%; }
}

@media (max-width: 900px) {
  #home .nexus-hero-image img { width: 60%; }
}

@media (max-width: 600px) {
  #home .nexus-hero-image img { width: 70%; }
}


/* =========================================
   Intro Devices Text
   ========================================= */

#intro .intro-devices,
#nexus-easy .intro-devices,
#safety .intro-devices,
#safety .safety-mini-grid__text {
  font-size: var(--fs-2);
  font-weight: 400;
}

@media (max-width: 1200px) {
  #intro .intro-devices,
  #nexus-easy .intro-devices,
  #safety .intro-devices,
  #safety .safety-mini-grid__text {
    font-size: var(--fs-1) !important;
  }
}

/* =========================================
   When layout flips (<1200px), shrink image
   ========================================= */

@media (max-width: 1199.98px) {
  .nexus-two-col__left img {
    width: 50% !important;   /* reduce image to 50% */
    margin: 0 auto;          /* keep centered */
    display: block;
	transition: width 0.3s ease;
  }
}


/* =========================================
   Remove focus/active outline from Contact Form jump link
   ========================================= */

#contact a.js-open-contact-form,
#contact a.js-open-contact-form:focus,
#contact a.js-open-contact-form:active,
#info-list a.js-open-contact-form,
#info-list a.js-open-contact-form:focus,
#info-list a.js-open-contact-form:active {
  outline: none;
  box-shadow: none;
}

/* Optional: only remove focus when triggered by mouse */
#contact a.js-open-contact-form:focus:not(:focus-visible),
#info-list a.js-open-contact-form:focus:not(:focus-visible) {
  outline: none;
}

#contact a.js-open-contact-form,
#info-list a.js-open-contact-form {
  -webkit-tap-highlight-color: transparent;
}


/* =========================================
   Contact Form deep-link (footer -> accordion)
   ========================================= */

/* So the accordion header doesn't get hidden under the fixed toolbar */
#contact-form {
  scroll-margin-top: calc(var(--toolbar-h, 80px) + 20px);
}


/* =========================================
   EX: 2-column → stacked layout at 1200px
   ========================================= */

.nexus-two-col {
  display: grid;
  grid-template-columns: 1fr 2fr; /* desktop: 2 cols, 1 row */
  gap: 20px;
  align-items: start;
  width: 100%;
  padding-bottom: 20px;
}

/* Left column controls alignment */
.nexus-two-col__left {
  display: flex;
  align-items: flex-start;   /* vertical top */
  justify-content: center;   /* horizontal center */
}

/* Image sizing only */
.nexus-two-col__left img {
  max-width: 100%;
  height: auto;
}

/* Flip to stacked layout at 1200px */
@media (max-width: 1200px) {
  .nexus-two-col {
    grid-template-columns: 1fr;  /* 1 column */
    grid-template-rows: auto auto; /* 2 rows */
    gap: 40px; /* 20px space between stacked rows */
  }
}


/* =========================================
   List styles: tick vs dot
   ========================================= */

#intro ul {
  list-style: none;   /* remove browser bullets */
  padding-left: 0;
}

/* Base list item spacing */
#intro ul li {
  position: relative;
  padding-left: 36px; /* space for icon */
  line-height: 1.5;      /* text line spacing */
  margin-bottom: 12px;   /* space between list items */
}

/* Tick icon list item */
#intro ul li.li-tick::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 22px;
  height: 22px;
  background-image: url("../../catmacs/tick-2-gold.png");
  background-size: contain;
  background-repeat: no-repeat;
}

#intro ul li.li-tick-2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 20px;
  height: 20px;
  background-image: url("../../catmacs/tick-3-gold.png");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Optional: dot-style list item (if you want a custom dot) */
#intro ul li.li-dot::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: 0;
  font-size: 1.2em;
  line-height: 1;
}



/* ---------------- Nexus: Safety section grid ---------------- */
#safety .safety-grid,
#features .safety-grid {
  display: grid;

  /* >= tablet: 1 row, 2 columns (60 / 40) */
  grid-template-columns: 60% 40%;

  /* >= tablet: v-align CENTER for both columns */
  align-items: center;

  gap: 0;
}

/* 10px padding left/right for each cell */
#safety .safety-grid > *,
#features .safety-grid > *{
  padding-left: 10px;
  padding-right: 10px;
  min-width: 0;
}

/* >= tablet: col 1 left-aligned */
#safety .safety-grid > *:nth-child(1),
#features .safety-grid > *:nth-child(1){
  justify-self: start;
  text-align: left;
}

/* >= tablet: col 2 centered */
#safety .safety-grid > *:nth-child(2),
#features .safety-grid > *:nth-child(2){
  justify-self: center;
  text-align: center;
}

/* <= tablet: stacked layout */
@media (max-width: 992px){
  #safety .safety-grid,
  #features .safety-grid{
    grid-template-columns: 1fr;

    /* <= tablet: h-align center, v-align top */
    justify-items: center;
    align-items: start;

    /* 20px gap between rows */
    row-gap: 20px;
  }

  /* <= tablet: center content */
  #safety .safety-grid > *,
#features .safety-grid > *{
    text-align: center;
  }
}

/* ---------------- Safety: grid padding ---------------- */
#safety .safety-grid + .safety-grid,
#features .safety-grid + .safety-grid{
  margin-top: 50px;
}


/* ---------------- Safety: reversed grid ---------------- */
@media (min-width: 993px){
  #safety .safety-grid--reverse,
  #features .safety-grid--reverse{
    grid-template-columns: 40% 60%;
  }

  /* Optional: alignment consistency */
  #safety .safety-grid--reverse > *:nth-child(1),
  #features .safety-grid--reverse > *:nth-child(1){
    justify-self: center;
    text-align: center;
  }

  #safety .safety-grid--reverse > *:nth-child(2),
  #features .safety-grid--reverse > *:nth-child(2){
	justify-self: start;
    text-align: left;
  }
}

/* ---------------- Safety: nested spec grid ---------------- */

#safety .safety-spec-grid{
  display: grid;

  /* > tablet: 4 columns, 2 rows */
  grid-template-columns: 48px 2.5fr 48px 1fr;
  row-gap: 18px;     /* space between rows */
  column-gap: 12px;  /* space between the 4 columns */

  align-items: start; /* v-align top */
  margin-top: 18px;   /* spacing from paragraph */
}

/* Common cell behaviour */
#safety .safety-spec-grid > *{
  min-width: 0;
}

/* 1st + 3rd columns: center, top */
#safety .safety-spec-grid__icon{
  justify-self: center;  /* h-align center */
  align-self: center;     /* v-align top */
  text-align: center;
}

/* 2nd + 4th columns: left, top */
#safety .safety-spec-grid__text{
  justify-self: start;   /* h-align left */
  align-self: center;     /* v-align top */
  text-align: left;
}

/* <= tablet: 2 columns, 4 rows (20/80) */
@media (max-width: 992px){
  #safety .safety-spec-grid{
    grid-template-columns: 36px 1fr;
    row-gap: 18px;
    column-gap: 12px;
  }

  /* Ensure the two-column alignment rules stay correct */
  #safety .safety-spec-grid__icon{
    justify-self: center;
    text-align: center;
  }

  #safety .safety-spec-grid__text{
    justify-self: start;
    text-align: left;
  }
}

/* ---------------- Safety: mini grid inside reversed text column ---------------- */

#safety .safety-grid--reverse .safety-mini-grid{
  display: grid;
  grid-template-columns: 48px 1fr;
  row-gap: 14px;
  column-gap: 12px;
  align-items: start;             /* default top */
  margin-top: 18px;               /* space above mini grid */
}

#safety .safety-grid--reverse .safety-mini-grid__icon{
  justify-self: center;           /* h-align center */
  align-self: start;             /* v-align center */
  text-align: center;
}

#safety .safety-grid--reverse .safety-mini-grid__text{
  justify-self: start;            /* h-align left */
  align-self: start;              /* v-align start */
  text-align: left;
}

/* <= tablet: keep 2x2 grid, but change widths to 20/80 */
@media (max-width: 992px){
  #safety .safety-grid--reverse .safety-mini-grid{
    grid-template-columns: 36px 1fr;
  }
}


/* ---------------- Safety: unified icon sizing ---------------- */

/* Spec grid + mini grid icons use the same size */
#safety .safety-spec-grid__icon img,
#safety .safety-mini-grid__icon img{
  width: clamp(44px, 4vw, 30px);  /* bigger on desktop, sensible on tablet */
  height: auto;
  display: block;
  margin-inline: auto;
}


/* =========================================
   Nexus Features Grid
   Desktop: 4 cols (15/35/15/35) x 3 rows
   Tablet↓: 2 cols (25/75) x 6 rows
   Row gap: 20px
   ========================================= */

#features .nexus-features-grid {
  display: grid;
  grid-template-columns: 15% 35% 15% 35%;
  column-gap: 0;        /* only row padding requested */
  row-gap: 40px;        /* padding between rows */
  align-items: center;
}

#features .nexus-feat {
  display: block;     /* prevents inherited flex centering */
  align-self: start;  /* top align the cell itself */
}

/* Alignment rules */
#features .nexus-feat.sm {
  text-align: center;
}

#features .nexus-feat.lg {
  text-align: left;
  font-size: var(--fs-2);
  font-weight: 300;
}

#features .nexus-features-grid p {
  margin: 0;
}

/* Features grid — mobile font size adjustment */

@media (max-width: 1200px) {
  #features .nexus-features-grid .nexus-feat.lg {
    font-size: var(--fs-1) !important;
  }
}

/* Tablet and below: reorder into 2-col / 6-row as specified */
@media (max-width: 1200px) {
  #features .nexus-features-grid {
    grid-template-columns: 30% 70%;
  }

  /* Reorder items:
     1/2
     5/6
     9/10
     3/4
     7/8
     11/12
  */

  #features .nexus-features-grid > :nth-child(1)  { order: 1; }  /* 1 */
  #features .nexus-features-grid > :nth-child(2)  { order: 2; }  /* 2 */

  #features .nexus-features-grid > :nth-child(5)  { order: 3; }  /* 5 */
  #features .nexus-features-grid > :nth-child(6)  { order: 4; }  /* 6 */

  #features .nexus-features-grid > :nth-child(9)  { order: 5; }  /* 9 */
  #features .nexus-features-grid > :nth-child(10) { order: 6; }  /* 10 */

  #features .nexus-features-grid > :nth-child(3)  { order: 7; }  /* 3 */
  #features .nexus-features-grid > :nth-child(4)  { order: 8; }  /* 4 */

  #features .nexus-features-grid > :nth-child(7)  { order: 9; }  /* 7 */
  #features .nexus-features-grid > :nth-child(8)  { order: 10; } /* 8 */

  #features .nexus-features-grid > :nth-child(11) { order: 11; } /* 11 */
  #features .nexus-features-grid > :nth-child(12) { order: 12; } /* 12 */
}


/* ===============================================
   Fake Button
   =============================================== */

		#features .intro-notice{
		  display: inline-flex;
		  padding: 0.7rem 1.25rem;
		  flex-direction: column;        /* stack lines */
		  align-items: center;
		  justify-content: center;
		  text-align: center;
		  white-space: normal;           /* ensure wrapping/line breaks allowed */
		  line-height: 1.2;

		  /* match .btn-outline:hover */
		  background: rgba(255,255,255,0.4);
		  border: 1px solid #c0b5a4;
		  color: rgba(192,181,164,1.0);

		  border-radius: 8px;
		  text-decoration: none;
		  font-family: var(--font-body);
		  font-weight: 400;

		  /* IMPORTANT: no hover effect + no cursor change */
		  transition: none;
		  cursor: default;
		}

		/* Lock it so hover/focus/active never change anything */
		#features .intro-notice:hover,
		#features .intro-notice:focus,
		#features .intro-notice:focus-visible,
		#features .intro-notice:active{
		  background: rgba(255,255,255,0.4);
		  border: 1px solid #c0b5a4;
		  color: rgba(192,181,164,1.0);
		  outline: none;
		  transform: none;
		  cursor: default;
		}

		#features .intro-notice-wrap{
		  display: flex;
		  justify-content: center;
		  padding-top: 20px;
		  padding-bottom: 10px;
		}

		#features .intro-notice .notice-line{
		  display: block;
		}


/* =========================
   #features: 4-row cup grid (inside .safety-grid--reverse second column)
   ========================= */

#features .features-cup-grid{
  width: 100%;
}

/* Row 1 and Row 3: single column, centered */
#features .features-cup-grid__row--full{
  display: flex;
  align-items: center;      /* v-align center */
  justify-content: center;  /* h-align center */
  text-align: center;
}

/* Row 1 spacing (optional) */
#features .features-cup-grid__row--title{
  padding: 10px 0 18px 0;
  color: #ffffff;
  padding-left: 10px;
  padding-right: 10px;
  background: #000000;
  line-height: 1.4;
}

/* Row 3: */
#features .features-cup-grid__row--divider{
  background: #000000;
  padding-top: 18px;
  padding-bottom: 18px;
  margin-top: 40px;
  color: #ffffff;
  padding-left: 10px;
  padding-right: 10px;
  line-height: 1.4;
}

/* Row 2 and Row 4: 6-column grid */
#features .features-cup-grid__row--six{
  display: grid;
  grid-template-columns: 75px 1fr 75px 1fr 75px 1fr;  /* (1,3,5) fixed 75px; (2,4,6) flexible */
  column-gap: 12px;
  row-gap: 14px;
  align-items: center; /* v-align center for all cells */
  margin-top: 40px;
}

/* Icon cells: center/center */
#features .features-cup-grid__icon{
  display: flex;
  align-items: center;      /* v-align center */
  justify-content: center;  /* h-align center */
  text-align: center;
}

/* Text cells: v-center + left */
#features .features-cup-grid__text{
  display: flex;
  align-items: center;  /* v-align center */
  justify-content: flex-start;
  text-align: left;
  font-size: var(--fs-1);
  font-weight: 300;
}

/* Row 2 only: icon columns get background #f1f1f1 */
#features .features-cup-grid__row--icons-bg .features-cup-grid__icon{
  border-radius: 8px;
}

/* Icon image sizing (keep consistent) */
#features .features-cup-grid__icon img,
#features .features-cup-grid__icon svg{
  width: 44px;
  height: auto;
  display: block;
}

/* <= tablet: stack the 6-column rows into 3 rows (1&2, then 3&4, then 5&6) */
@media (max-width: 992px){
  #features .features-cup-grid__row--six{
    grid-template-columns: 40px 1fr;  /* icon col, text col */
    column-gap: 12px;
    row-gap: 14px;
	padding-left: 20px;
	margin-top: 14px;
  }

  /* Space before the first 6-col row only */
  #features .features-cup-grid__row--six:first-of-type{
    margin-top: 20px;
  }
	
  /* Ensure alignment matches requirement */
  #features .features-cup-grid__icon{
    justify-content: center;  /* h-align center */
    align-items: center;      /* v-align center */
  }

  #features .features-cup-grid__text{
    justify-content: flex-start; /* h-align left */
    align-items: center;         /* v-align center */
    text-align: left;
  }
}

/* Hide line break by default (<= tablet) */
.br-desktop{
  display: none;
}

/* Show line break only on >= tablet */
@media (min-width: 993px){
  .br-desktop{
    display: block;
  }
}


/* 3-column row after safety-grid--reverse */
#features .features-triple-row{
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.6fr; /* adjust if you want different widths */
  gap: 20px;
  align-items: start; /* v-align top for row */
}

/* Nested grid inside col 1 & 2 */
#features .features-mini-2col{
  display: grid;
  grid-template-columns: 40% 60%;
  column-gap: 12px;
  align-items: start; /* v-align top */
}

/* 40% column: top + centered */
#features .features-mini-2col__left{
  display: flex;
  align-items: flex-start;   /* v-align top */
  justify-content: center;   /* h-align center */
  text-align: center;
}

/* 60% column: top + left */
#features .features-mini-2col__right{
  display: flex;
  align-items: flex-start;   /* v-align top */
  justify-content: flex-start;
  text-align: left;
}

#features .features-mini-2col__text{
  margin: 0;
  font-size: var(--fs-1);
  font-weight: 300;
}

#features .features-triple-row__col--center{
  display: flex;
  align-items: flex-start;   /* v-align top */
  justify-content: center;   /* h-align center */
  text-align: center;
}

#features .features-mini-2col__text img{
  display: block;
  padding-left: 20px;
  width: 40%;
  height: auto;
}



@media (max-width: 992px){
  /* Reduce image size in the 3rd stacked row by 20% */
  #features .features-triple-row > .features-triple-row__col:nth-child(3) img{
    transform: scale(0.8);
    transform-origin: top center;
  }
  /* padding before 2nd row */
  #features .features-triple-row > .features-triple-row__col:nth-child(2){
    margin-top: 20px;
  }
  /* padding before 3rd row */
  #features .features-triple-row > .features-triple-row__col:nth-child(3){
    margin-top: 40px;
  }
  /* Add right padding to text in the right internal columns */
  #features .features-mini-2col__right,
  #features .features-mini-2col__text{
    padding-right: 5px;
  }
  /* keep the inner 2-col grids at 40/60 (alignments unchanged) */
  #features .features-mini-2col{
    grid-template-columns: 30% 70%;
  }
  /* <= tablet: stack the 3 columns into 3 rows (one under another) */
  #features .features-triple-row{
    grid-template-columns: 1fr;  /* stack columns */
    row-gap: 20px;              /* spacing between stacked rows */
  }
}


/* =========================
   Nexus Cloud: 3-column grid
   ========================= */

#nexus-cloud .nexus-cloud-grid-3{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 columns, 1fr each */
  gap: 20px;
  align-items: start; /* v-align top by default */
}

/* Column 1: top + center */
#nexus-cloud .nexus-cloud-grid-3__col--center{
  display: flex;
  flex-direction: column;
  align-items: center;   /* h-align center */
  justify-content: flex-start; /* v-align top */
  text-align: center;
}

/* Column 2: inner 3-row grid (each row top + center) */
#nexus-cloud .nexus-cloud-mid{
  display: grid;
  grid-template-rows: auto auto auto;
  row-gap: 20px;
  align-items: start;
}

#nexus-cloud .nexus-cloud-mid__row{
  display: flex;
  flex-direction: column;
  align-items: center;      /* h-align center */
  justify-content: flex-start; /* v-align top */
  text-align: center;
}

/* Column 3: top + left */
#nexus-cloud .nexus-cloud-grid-3__col--left{
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* h-align left */
  justify-content: flex-start; /* v-align top */
  text-align: left;
}

/* Reduce images in column 1 and column 2 */
#nexus-cloud .nexus-cloud-grid-3__col--center img,
#nexus-cloud .nexus-cloud-mid__row img{
  max-width: 80%;   /* 20% smaller than natural size */
  height: auto;
  display: block;
}


/* Ordered list numbering in Nexus Cloud column 3 */
#nexus-cloud .nexus-cloud-grid-3__col--left ol{
  list-style-type: decimal;
  list-style-position: inside; /* move numbers into padding box */
  padding-left: 15px;          /* indent numbers */
  margin-left: 0;
}

/* Fine-tune text alignment under the numbers */
#nexus-cloud .nexus-cloud-grid-3__col--left ol li{
  padding-left: 0;
}

@media (max-width: 992px){

  #nexus-cloud .nexus-cloud-grid-3{
    grid-template-columns: 1fr;
    row-gap: 35px;
  }

  #nexus-cloud .nexus-cloud-grid-3__col--center img{
    transform: none !important;
    width: clamp(180px, 60%, 320px);
    height: auto;
    display: block;
    margin: 0 auto;
  }

  #nexus-cloud .nexus-cloud-mid__row picture{
    width: 100%;
    display: block;
  }

  #nexus-cloud .nexus-cloud-mid__row img{
    transform: none !important;
    width: clamp(160px, 70%, 300px);
    height: auto;
    display: block;
    margin: 0 auto;
  }

  #nexus-cloud .nexus-cloud-mid{
    row-gap: 30px;
  }
  
  #nexus-cloud .nexus-cloud-mid__row:last-child{
    margin-bottom: 40px;
  }
}


/* =========================
   Nexus Cloud: 2x2 mini grid (column 3)
   ========================= */

#nexus-cloud .nexus-cloud-mini-grid{
  display: grid;
  grid-template-columns: 70px 1fr;
  row-gap: 40px;
  column-gap: 10px;
  margin-top: 40px;   /* space above the grid */
  align-items: start; /* v-align top */
}

/* Column 1: top + center */
#nexus-cloud .nexus-cloud-mini-grid__icon{
  display: flex;
  align-items: flex-start;   /* v-align top */
  justify-content: left;   /* h-align center */
  text-align: center;
}

/* Column 2: top + left */
#nexus-cloud .nexus-cloud-mini-grid__text{
  display: flex;
  flex-direction: column;   /* stack text and image */
  align-items: flex-start;   /* v-align top */
  justify-content: flex-start;
  text-align: left;
  font-size: var(--fs-1);
  font-weight: 300;
}

#nexus-cloud .nexus-cloud-mini-grid__text img{
  width: 160px;      /* image size */
  height: auto;      /* preserve aspect ratio */
  margin-top: 10px;  /* space above the image */
  display: block;
}

/* Optional: icon sizing */
#nexus-cloud .nexus-cloud-mini-grid__icon img{
  width: 70px;
  height: auto;
  display: block;
}





/* =========================================
   Nexus Table
   ========================================= */


#nexus-compare {
  color: var(--light-1);
}

/* Wrapper: no horizontal scrolling */
#nexus-compare .nexus-compare-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: visible;
  border: 1px solid var(--dark-4);
  border-radius: 8px;
}

/* Table base: RFID typography + spacing */
#nexus-compare .nexus-compare-table {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: var(--fs-0);
  white-space: normal;
}

/* Cells control row rhythm */
#nexus-compare .nexus-compare-table th,
#nexus-compare .nexus-compare-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--dark-4);
  text-align: left;
  vertical-align: top;
  font-weight: 300;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Header row (RFID style) */
#nexus-compare .nexus-compare-table thead th {
  background-color: #000;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Alternating rows + hover */
#nexus-compare .nexus-compare-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

#nexus-compare .nexus-compare-table tbody tr:hover {
  background-color: rgba(192, 181, 164, 0.06);
}

/* Desktop default: 35% / 65% */
#nexus-compare .nexus-compare-table th:nth-child(1),
#nexus-compare .nexus-compare-table td:nth-child(1) {
  width: 50%;
}

#nexus-compare .nexus-compare-table th:nth-child(2),
#nexus-compare .nexus-compare-table td:nth-child(2) {
  width: 50%;
}

/* Feature title wrapper */
#nexus-compare .col1-inner {
  font-weight: 300;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Smoothly move towards 50/50 */
@media (max-width: 1200px) {
  #nexus-compare .nexus-compare-table th:nth-child(1),
  #nexus-compare .nexus-compare-table td:nth-child(1) {
    width: 50%;
  }

  #nexus-compare .nexus-compare-table th:nth-child(2),
  #nexus-compare .nexus-compare-table td:nth-child(2) {
    width: 50%;
  }
}

@media (max-width: 900px) {
  #nexus-compare .nexus-compare-table th:nth-child(1),
  #nexus-compare .nexus-compare-table td:nth-child(1) {
    width: 50%;
    padding-left: 8px;
    padding-right: 8px;
  }

  #nexus-compare .nexus-compare-table th:nth-child(2),
  #nexus-compare .nexus-compare-table td:nth-child(2) {
    width: 50%;
  }
}

/* Mobile: 50 / 50 */
@media (max-width: 600px) {
  #nexus-compare .nexus-compare-table th:nth-child(1),
  #nexus-compare .nexus-compare-table td:nth-child(1),
  #nexus-compare .nexus-compare-table th:nth-child(2),
  #nexus-compare .nexus-compare-table td:nth-child(2) {
    width: 50%;
  }
}

/* Disclaimer sits under the table and matches table width */
#nexus-compare .nexus-compare-disclaimer {
  max-width: 1200px;          /* same as wrapper */
  margin: 10px auto 0 auto;   /* centered, small gap above */
  padding: 10px 16px 0 16px;  /* light inset */
  text-align: justify;
  opacity: 0.85;
  line-height: 1.6;
}

/* On small screens, justify can look weird — optional */
@media (max-width: 600px) {
  #nexus-compare .nexus-compare-disclaimer {
    text-align: left;
  }
}

/* Match table disclaimer typography in card view */
#nexus-compare .nexus-compare-card-footer {
  font-size: var(--fs-1);
  font-weight: 300;
  line-height: 1.6;
  text-align: center;
}



/* =========================================
   Nexus compare footer — table view (no borders)
   ======================================== */

#nexus-compare .nexus-compare-footer td {
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  background: transparent;
}

#nexus-compare .nexus-compare-footer {
  border-bottom: none !important;
}


/* ==========================================================
   Nexus mobile cards
   ========================================================== */

/* Cards container (JS toggles display) */
#nexus-compare .nexus-compare-cards {
  display: none;
  max-width: 900px;
  margin: 0 auto;
  gap: 14px;
}

/* Card */
#nexus-compare .nexus-card {
  border: 1px solid var(--dark-4);
  border-radius: 10px;
  background: #000;
  padding: 14px 16px;
}

/* Nexus card title */
#nexus-compare .rfid-card-title {
  font-weight: 700 !important;
  font-size: var(--fs-1) !important;
  line-height: 1.25 !important;
  margin-bottom: 10px;
}

/* Nexus card title — force match */
#nexus-compare .nexus-card .nexus-card-title {
  display: block;
  width: 100%;
  font-weight: 700 !important;
  font-size: var(--fs-1) !important;
  line-height: 1.25 !important;
  margin-bottom: 10px;
}

/* Row in card */
#nexus-compare .nexus-card-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-left: 10px;
}

#nexus-compare .nexus-card-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* Label + value */
#nexus-compare .nexus-card-label {
  font-weight: 600;
  opacity: 0.95;
  color: #c0b5a4;
}

#nexus-compare .nexus-card-value {
  padding-left: 10px;
  font-weight: 300;
}

#nexus-compare .nexus-card-value br {
  content: "";
  display: block;
  margin-bottom: 6px;
  padding-left: 10px;
}

/* If col1-inner ever appears inside a card title, don’t let it override typography */
#nexus-compare .nexus-card-title .col1-inner {
  font-weight: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  width: auto !important;
  max-width: none !important;
}



/* =========================================
   Dropdown styling
   ========================================= */

#nexus-compare .nexus-view-select {
  width: 355px;
  max-width: calc(100% - 2rem);
  margin: 0 auto 1.25rem auto;
}

#nexus-compare .nexus-select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--dark-4);
  color: var(--light-1);
  border: 1px solid var(--brown-1);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}



/* ==============================================
   Nexus EASY GRID 
   ============================================== */

		#nexus-easy .nexus-easy-grid {
		  display: grid;
		  grid-template-columns: repeat(6, minmax(0, 1fr));  /* 6 equal columns */
		  gap: 1.5rem;
		  align-items: stretch;
		  justify-items: center;
		}

		#nexus-easy .nexus-easy-item {
		  text-align: center;
		  /* Optional styling: */
		  /* padding: 1rem; */
		  /* border: 1px solid rgba(255,255,255,0.08); */
		}

		/* < 992px 3 columns (2 rows, 3 cols = 2x3) */
		@media (max-width: 992px) {
		  #nexus-easy .nexus-easy-grid {
			grid-template-columns: repeat(3, minmax(0, 1fr));
		  }
		}

		/* < 768px 2 columns (3 rows, 2 cols = 3x2) */
		@media (max-width: 768px) {
		  #nexus-easy .nexus-easy-grid {
			grid-template-columns: repeat(2, minmax(0, 1fr));
		  }
		}


/* =========================
   #software: 3-column grid
   Desktop/tablet: synced row heights (col 1 & 3)
   Exact gaps: 20 / 40 / 20
   Whole 4-row block vertically centered (top+bottom 1fr)
   ========================= */

#software .software-grid-3-wrap{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 100px;
  padding-left: 10px;
  padding-right: 10px;
}

#software .software-grid-3{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;

  /* Shared row tracks:
     1fr (top spacer)
     row1 content
     20px gap
     row2 content
     40px gap
     row3 content
     20px gap
     row4 content
     1fr (bottom spacer)
  */
  grid-template-rows: 1fr auto 20px auto 40px auto 20px auto 1fr;

  column-gap: 20px;
  align-items: stretch;
}

/* Column 2 image: true center in both axes */
#software .software-col--image{
  grid-column: 2;
  grid-row: 1 / -1;      /* still spans all rows */
  display: flex;
  align-items: flex-start; /* v-align TOP */
  justify-content: center; /* h-align CENTER */
  text-align: center;
}
#software .software-col--image img{
  max-width: 100%;
  height: auto;
  display: block;
}

/* Make left + right column wrappers not “block” the parent grid placement */
#software .software-col--left,
#software .software-col--right{
  display: contents;
}

/* Make the stack wrapper not “block” the parent grid placement */
#software .software-stack{
  display: contents;
}

/* Place Column 1 items into shared rows */
#software .software-col--left .software-r1{ grid-column: 1; grid-row: 2; }
#software .software-col--left .software-r2{ grid-column: 1; grid-row: 4; }
#software .software-col--left .software-r3{ grid-column: 1; grid-row: 6; }
#software .software-col--left .software-r4{ grid-column: 1; grid-row: 8; }

/* Place Column 3 items into shared rows */
#software .software-col--right .software-r1{ grid-column: 3; grid-row: 2; }
#software .software-col--right .software-r2{ grid-column: 3; grid-row: 4; }
#software .software-col--right .software-r3{ grid-column: 3; grid-row: 6; }
#software .software-col--right .software-r4{ grid-column: 3; grid-row: 8; }

/* Rounded rectangles (text centered inside rectangles only) */
#software .software-bevel{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 16px;
  color: #ffffff;
  border-radius: 10px;
}

/* Colors */
#software .software-bevel--blue   { background: #404897; }
#software .software-bevel--pink   { background: #da6772; }
#software .software-bevel--purple { background: #815e9f; }
#software .software-bevel--teal   { background: #4c87a8; }

/* Bullet rows: top-left, and remove UL default margin so spacing is exact */
#software .software-bullets{
  text-align: left;
}
#software .software-bullets ul{
  margin: 0;
  padding-left: 1.2rem;
  list-style: disc;
}
#software .software-bullets li{
  margin-bottom: 10px;
}

/* <= tablet: hide middle image col, stack col 3 under col 1 */
@media (max-width: 992px){
  #software .software-grid-3{
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 40px;
  }

  #software .software-col--image{
    display: none;
  }

  /* Return to normal stacked flow */
  #software .software-col--left,
  #software .software-col--right{
    display: block;
	padding-left: 30px;
	padding-right: 30px;
  }
  #software .software-stack{
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  /* Restore your gap rhythm on mobile */
  #software .software-stack > :nth-child(2){ margin-top: 20px; }
  #software .software-stack > :nth-child(3){ margin-top: 40px; }
  #software .software-stack > :nth-child(4){ margin-top: 20px; }
}


/* =========================================
   #software: features-style grid
   ========================================= */

/* Match Bootstrap container/col horizontal gutters */
#software-icons .software-features-grid-wrap{
  width: 100%;
  max-width: 1200px;                 /* keep your chosen max-width */
  margin: 0 auto;
  padding-top: 0px;

}

#software-icons .software-features-grid{
  display: grid;
  grid-template-columns: 15% 35% 15% 35%;
  column-gap: 0;
  row-gap: 40px;
  align-items: center;
}

/* Cell base */
#software-icons .software-feat{
  display: block;     /* critical: NOT flex */
  align-self: start;  
}

/* Icon cells */
#software-icons .software-feat.sm{
  text-align: center;
}

/* Text cells */
#software-icons .software-feat.lg{
  text-align: left;
  font-size: var(--fs-2);
  font-weight: 300;
}

/* Keep paragraphs tight */
#software-icons .software-features-grid p{
  margin: 0;
}

#software-icons .software-feat.sm img{
  width: 60%;
  height: auto;
  display: inline-block;
}

/* <= 1200px: match ex-features-grid behaviour exactly */
@media (max-width: 1200px){

  /* Font-size step-down (same as features) */
  #software-icons .software-feat.lg{
    font-size: var(--fs-1) !important;
	padding-right: 20px;
  }

  /* Collapse to 2 columns (30 / 70) */
  #software-icons .software-features-grid{
    grid-template-columns: 30% 70%;
  }

  /* Reorder to match ex-features-grid tablet behaviour
     Desktop order: 1 2 3 4 / 5 6 7 8
     Tablet order : 1 2 / 5 6 / 3 4 / 7 8
  */
  #software-icons .software-features-grid > :nth-child(1) { grid-row: 1; grid-column: 1; }
  #software-icons .software-features-grid > :nth-child(2) { grid-row: 1; grid-column: 2; }

  #software-icons .software-features-grid > :nth-child(5) { grid-row: 2; grid-column: 1; }
  #software-icons .software-features-grid > :nth-child(6) { grid-row: 2; grid-column: 2; }

  #software-icons .software-features-grid > :nth-child(3) { grid-row: 3; grid-column: 1; }
  #software-icons .software-features-grid > :nth-child(4) { grid-row: 3; grid-column: 2; }

  #software-icons .software-features-grid > :nth-child(7) { grid-row: 4; grid-column: 1; }
  #software-icons .software-features-grid > :nth-child(8) { grid-row: 4; grid-column: 2; }
}


/* =========================================
   #software-icons: 2-col image + 4-row grid
   ========================================= */

#software-icons .software-icons-2col-wrap{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 100px; /* space below software-features-grid-wrap */
}

#software-icons .software-icons-2col{
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns, 1 row */
  column-gap: 40px;
  align-items: start; /* v-align top for both columns */
}

/* Col 1: image top + centered */
#software-icons .software-icons-2col__img{
  display: flex;
  align-items: flex-start;  /* v-align */
  justify-content: flex-end;  /* h-align */
  text-align: center;
}

#software-icons .software-icons-2col__img img{
  width: 70%;
  max-width: 5000px;
  height: auto;
  display: block;
}

/* Col 2: six-row grid top/left */
#software-icons .software-icons-2col__list{
  display: flex;
  align-items: flex-start; /* v-align top */
  justify-content: flex-start;
  text-align: left;
}

#software-icons .software-icons-6rows{
  width: 100%;
  display: grid;
  grid-template-rows: repeat(6, auto);
  row-gap: 20px; /* spacing between the 6 rows */
  align-items: start;
}

#software-icons .software-icons-6rows__row{
  text-align: left;
}

@media (max-width: 992px){
  /* Stack columns */
  #software-icons .software-icons-2col{
    grid-template-columns: 1fr;
    row-gap: 30px;
  }
  /* Center image horizontally */
  #software-icons .software-icons-2col__img{
    justify-content: center;
  }
  /* Center the list column */
  #software-icons .software-icons-2col__list{
    justify-content: center;
  }
  /* Center the 6-row block */
  #software-icons .software-icons-6rows{
    margin: 0 auto;
  }
  /* Override the desktop row alignment */
  #software-icons .software-icons-6rows__row{
    text-align: center;
  }
}


/* =========================================
   Download image swap (fade on hover)
   ========================================= */

#software-icons .download-swap{
  position: relative;
  display: inline-block;

  /* give the swap a real, centerable box */
  width: 240px;
  max-width: 100%;
}

#software-icons .download-swap img{
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.4s ease;
}

/* Hover image (initially hidden) */
#software-icons .download-swap img:last-child{
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* Fade swap on hover */
#software-icons .download-swap:hover img:last-child{
  opacity: 1;
}

#software-icons .download-swap:hover img:first-child{
  opacity: 0;
}

@media (max-width: 992px){
  /* Center each row's content */
  #software-icons .software-icons-6rows__row{
    display: flex;
    justify-content: center;  /* h-align */
    text-align: center;
  }
}





