/* =========================================
   Temperature Table
   ========================================= */


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

/* Wrapper: no horizontal scrolling */
#temperature-compare .temperature-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 */
#temperature-compare .temperature-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 */
#temperature-compare .temperature-compare-table th,
#temperature-compare .temperature-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) */
#temperature-compare .temperature-compare-table thead th {
  background-color: #000;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
}

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

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

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

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

/* Feature title wrapper */
#temperature-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) {
  #temperature-compare .temperature-compare-table th:nth-child(1),
  #temperature-compare .temperature-compare-table td:nth-child(1) {
    width: 50%;
  }

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

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

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

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

/* Disclaimer sits under the table and matches table width */
#temperature-compare .temperature-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) {
  #temperature-compare .temperature-compare-disclaimer {
    text-align: left;
  }
}

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



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

#temperature-compare .temperature-compare-footer td {
  border-bottom: none !important;
  border-left: none !important;

  border-right: none !important;
  background: transparent;
}

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


/* ==========================================================
   Temperature mobile cards
   ========================================================== */

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

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

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

/* Temperature card title — force match */
#temperature-compare .temperature-card .temperature-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 */
#temperature-compare .temperature-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;
}

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

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

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

#temperature-compare .temperature-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 */
#temperature-compare .temperature-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
   ========================================= */

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

#temperature-compare .temperature-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;
}




/* =========================================
   Home STS Image Size
   ========================================= */

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

/* Hero wrapper: span viewport, center content */
#home .temperature-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: 20px;
}

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

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

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

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

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

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



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

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


/* =========================================
   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
   ========================================= */

.temperature-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 */
.temperature-two-col__left {
  display: flex;
  align-items: flex-start;   /* vertical top */
  justify-content: center;   /* horizontal center */
}

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

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


/* =========================================
   Section Title - Text Overlay 
   ========================================= */
#temperature-mql .text-absolute .fs-10,
#uses .text-absolute .fs-10 {
  display: inline-block;
  margin-top: clamp(20px, 6vw, 80px);
}

/* =========================================
   Center overlay text inside its section
   (without breaking global positioning)
   ========================================= */

#temperature-mql .text-absolute,
#uses .text-absolute {
  text-align: center;
}

#temperature-mql .text-absolute h3,
#uses .text-absolute h3 {
  margin-left: 0 !important; /* neutralize offset-2 */
}


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

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

#intro .intro-devices a,
#temperature-easy .intro-devices a {
  color: #c0b5a4;
  text-decoration: none;
  transition: color 0.25s ease;
}

#intro .intro-devices a:hover,
#intro .intro-devices a:focus-visible,
#temperature-easy .intro-devices a:hover,
#temperature-easy .intro-devices a:focus-visible {
  color: #E6E6E6;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

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


/* =========================================
   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;
}


/* ==============================================
   EX EASY GRID 
   ============================================== */

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

		#temperature-easy .temperature-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) {
		  #temperature-easy .temperature-easy-grid {
			grid-template-columns: repeat(3, minmax(0, 1fr));
		  }
		}

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

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

#features .temperature-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 .temperature-feat {
  display: block;     /* prevents inherited flex centering */
  align-self: start;  /* top align the cell itself */
}

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

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

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

/* Features grid — mobile font size adjustment */

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

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

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

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

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

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

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

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

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



/* =========================================
   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 {
  outline: none;
  box-shadow: none;
}

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

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



/* =========================
   #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;
  }
}


/* =========================================
   #monitor: Grid
   ========================================= */

#monitor .temperature-monitor-grid{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  align-items: start; /* v-align top for both cells */
}

/* Column 1: image wrapper (top/center) */
#monitor .temperature-monitor-grid__img{
  display: flex;
  align-items: flex-start;   /* v-align top */
  justify-content: center;   /* h-align center */
  text-align: center;
}

#monitor .temperature-monitor-grid__img img{
  max-width: 100%;
  height: auto;
  display: block;
}

/* Column 2: content wrapper (top/left) */
#monitor .temperature-monitor-grid__content{
  display: flex;
  align-items: flex-start;     /* v-align top */
  justify-content: flex-start; /* h-align left */
  text-align: left;
}

/* Mobile: stack to 1-col / 2-rows + 10px side padding on both cells */
@media (max-width: 991.98px){
  #monitor .temperature-monitor-grid{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    row-gap: 30px;
    column-gap: 0;
  }

  #monitor .temperature-monitor-grid__img,
  #monitor .temperature-monitor-grid__content{
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* =========================================
   Monitor - Nested grid inside 2nd cell
   ========================================= */

#monitor .temperature-monitor-content-grid{
  display: grid;
  grid-template-columns: 40px 1fr;   /* col 1 = icon, col 2 = text */
  column-gap: 10px;
  row-gap: 16px;
  width: 100%;
  align-items: center;
}

/* First three rows should span BOTH columns */
#monitor .temperature-monitor-content-grid .tm-full{
  grid-column: 1 / -1;
  margin: 0;
}

/* Icon cells (rows 4–6 col 1) */
#monitor .temperature-monitor-content-grid .tm-icon{
  width: 40px;
  height: auto;
  display: block;
  margin-top: 0px; /* tiny nudge so it sits nicely with text */
}

/* Text cells (rows 4–6 col 2) */

#monitor .temperature-monitor-content-grid .tm-label {
  font-size: var(--fs-2);
  font-weight: 400;
  margin: 0;
}


@media (max-width: 1200px) {
  #monitor .temperature-monitor-content-grid .tm-label {
    font-size: var(--fs-1);
  }
}

#monitor .temperature-monitor-content-grid .level-1 {
  font-size: var(--fs-2);
  font-weight: 400;
}


@media (max-width: 1200px) {
  #monitor .temperature-monitor-content-grid .level-1 {
    font-size: var(--fs-1);
	text-align: left;
  }
}

#monitor .temperature-monitor-content-grid .level-2 {
  font-size: var(--fs-3);
  font-weight: 400;
  color: #c0b5a4;
}


@media (max-width: 1200px) {
  #monitor .temperature-monitor-content-grid .level-2 {
    font-size: var(--fs-2);
	text-align: left;
  }
}



/* =========================================
   Guide Grid
   ========================================= */

#guide .guide-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

/* Each item stacks image + text */
#guide .guide-item{
  display: flex;
  flex-direction: column;
  align-items: center;      /* h-align center */
  justify-content: flex-start;
  text-align: center;
}

/* Image */
#guide .guide-item img{
  max-width: 50%;
  height: auto;
  display: block;
}

/* Text under image */
#guide .guide-item p{
  margin-top: 20px;
  margin-bottom: 0;
}

/* Tablet: 2 columns */
@media (max-width: 1200px){
  #guide .guide-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 column */
@media (max-width: 767.98px){
  #guide .guide-grid{
    grid-template-columns: 1fr;
  }
}

/* Mobile: 1 column */
@media (max-width: 1200px){
  #guide .guide-item{
    padding-bottom: 20px;
  }
}

/* Text */
#guide .guide-text-1 {
  font-size: var(--fs-2);
  font-weight: 600;
}

#guide .guide-text-2 {
  font-size: var(--fs-1);
  font-weight: 300;
}

@media (max-width: 1200px){
  #guide .guide-text-2 {
    padding-left: 30px;
	padding-right: 30px;
  }
}


/* =========================================
   Nexus Integration
   ========================================= */

#integration .integration-info {
  font-size: var(--fs-2);
  font-weight: 400;
  padding-bottom: 20px;
  text-align: center;
}

@media (max-width: 1200px){
  #integration .integration-info {
    padding-left: 10px;
	padding-right: 10px;
  }
}

/* === Integration Grid === */

#integration .integration-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 24px;
  width: 100%;
  align-items: start;
  padding-top: 40px;
}

#integration .integration-cell{
  align-self: start;
}

/* Desktop horizontal alignment */
#integration .integration-1,
#integration .integration-3{
  justify-self: center; /* h-align center */
  text-align: center;
}

#integration .integration-2,
#integration .integration-4{
  justify-self: start;  /* h-align left */
  text-align: left;
}

/* Images */
#integration .integration-cell img{
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Tablet (≤1200px) ----------
   2 columns / 2 rows
   3 & 4 move under 1 & 2 with 20px padding
*/
@media (max-width: 1200px){
  #integration .integration-grid{
    display: grid;
    grid-template-columns: minmax(0, 1fr); /* ONE column, full width */
    grid-template-rows: auto auto auto auto;
    row-gap: 20px;
  }

  #integration .integration-1{
    grid-column: 1;
    grid-row: 1;
  }

  #integration .integration-2{
    grid-column: 1;
    grid-row: 2;
  }

  #integration .integration-3{
    grid-column: 1;
    grid-row: 3;
  }

  #integration .integration-4{
    grid-column: 1;
    grid-row: 4;
  }

  /* Critical: allow content to shrink properly */
  #integration .integration-cell{
    min-width: 0;
  }
}




/* === Integration Nest 1 === */
#integration .integration-nest-1{
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 14px;
  width: 100%;
}

#integration .integration-nest-1 img{
  width: 30px;
  height: auto;
  display: block;
  grid-column: 1;           /* force col 1 */
  justify-self: center;     /* center within col */
  align-self: start;
}

#integration .integration-nest-1 p{
  margin: 0;
  min-width: 0;
  grid-column: 2;           /* force col 2 */
  font-size: var(--fs-1);
  font-weight: 300;
  text-align: left;
}

/* === Integration Nest 2 === */
#integration .integration-nest-2{
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 12px;
  width: 100%;
}

#integration .integration-nest-2 img{
  width: 30px;
  height: auto;
  display: block;
  grid-column: 1;
  place-self: center;       /* true center/center */
}

#integration .integration-nest-2 p{
  margin: 0;
  min-width: 0;
  grid-column: 2;
  font-size: var(--fs-1);
  font-weight: 300;
  text-align: left;
}

/* Mobile padding (both nests) */
@media (max-width: 1200px){
  #integration .integration-nest-1,
  #integration .integration-nest-2{
    padding-left: 20px;
    padding-right: 10px;
  }
}




/* =========================================
   Grids L-R & R-L
========================================= */

/* Grid */
.cg-grid{
  display: grid;
  grid-template-columns: 1fr;      /* mobile */
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1200px){
  .cg-grid{
    grid-template-columns: 1fr 1fr; /* tablet+ */
    align-items: start;             /* v-align start across row */
  }
}

/* Base cell: fill its column, no centering by default */
.cg-cell{
  width: 100%;
  align-self: start;               /* v-align start */
}

/* IMAGE cell: v-start, h-center */
.cg-cell--image{
  display: flex;
  justify-content: center;         /* h-center */
  align-items: flex-start;         /* v-start */
}

.cg-cell--image img{
  display: block;
  max-width: 100%;
  height: auto;
}

/* TEXT cell: v-start, h-left */
.cg-cell--text{
  display: flex;
  justify-content: flex-start;     /* h-left */
  align-items: flex-start;         /* v-start */
  text-align: center;
}

/* If your text content is wrapped, ensure it can expand */
.cg-cell--text > *{
  width: 100%;
}


@media (min-width: 1200px){
  .cg-grid-swap{
    direction:rtl;
  }
  .cg-grid-swap > *{
    direction:ltr;
  }
}





