 /* =========================================================
   CMD+CTRL CYBER RANGE MATRIX
   ========================================================= */
  #cmdctrl-range-matrix {
    --cr-orange: #f68e1e;
    --cr-orange-light: #ffa300;
    --cr-blue-dark: #00172f;
    --cr-blue: #00729c;
    --cr-blue-light: #0a86b5;
    --cr-cerulean: #9cd6ed;
    --cr-frame-orange: #f68e1e;
    --cr-frame-blue: #9cd6ed;
    --cr-env-width: 205px;
    --cr-grid-gap: 14px;
    --cr-modal-nav-offset: 90px;
    position: relative;
    width: 100%;
    overflow: hidden;
    background:
      radial-gradient(
        circle at 75% 8%,
        rgba(0, 114, 156, 0.38),
        transparent 38%
      ),
      linear-gradient(
        125deg,
        var(--cr-blue-dark) 0%,
        #064b6c 48%,
        var(--cr-blue-light) 100%
      );
    border: 1px solid hsl(0deg 0% 100% / 32.16%);
    border-radius: 18px;
    padding: 42px;
  }
  /* =========================================================
   INTRO
   ========================================================= */
  #cmdctrl-range-matrix .cr-intro {
    max-width: 850px;
    margin-bottom: 38px;
  }
  #cmdctrl-range-matrix .cr-eyebrow {
    margin: 0 0 8px;
    color: var(--cr-orange);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  #cmdctrl-range-matrix .cr-title {
    margin: 0 0 10px;
    padding: 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    font-weight: 700;
  }
  #cmdctrl-range-matrix .cr-description {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.65;
  }
  /* =========================================================
   MATRIX SHELL
   ========================================================= */
  #cmdctrl-range-matrix .cr-grid-shell {
    position: relative;
    width: 100%;
  }
  /* =========================================================
   SVG OUTER FRAMES
   ========================================================= */
  #cmdctrl-range-matrix .cr-frame-svg {
    position: absolute;
    top: 0;
    bottom: 0;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 10;
  }
  /* Orange environment frame */
  #cmdctrl-range-matrix .cr-environment-frame {
    left: 0;
    width: var(--cr-env-width);
    color: var(--cr-frame-orange);
  }
  /* Blue matrix frame */
  #cmdctrl-range-matrix .cr-difficulty-frame {
    left: calc(var(--cr-env-width) + var(--cr-grid-gap));
    width: calc(100% - var(--cr-env-width) - var(--cr-grid-gap));
    color: var(--cr-frame-blue);
  }
  /* =========================================================
   MATRIX HEADER
   ========================================================= */
  #cmdctrl-range-matrix .cr-matrix-header {
    display: grid;
    grid-template-columns:
      var(--cr-env-width)
      repeat(4, minmax(0, 1fr));
    gap: var(--cr-grid-gap);
    position: relative;
    width: 100%;
    padding-top: 22px;
    padding-bottom: 22px;
  }
  /* Horizontal line under difficulty headings */
  #cmdctrl-range-matrix .cr-matrix-header::after {
    content: "";
    position: absolute;
    left: calc(var(--cr-env-width) + var(--cr-grid-gap));
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--cr-frame-blue);
    pointer-events: none;
    z-index: 2;
  }
  #cmdctrl-range-matrix .cr-difficulty-label {
    position: relative;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
  }
  /* Vertical header dividers:
   Intermediate / Advanced / Elite only */
  #cmdctrl-range-matrix .cr-difficulty-label:not(:nth-child(2))::before {
    content: "";
    position: absolute;
    top: -22px;
    bottom: -22px;
    left: calc(var(--cr-grid-gap) / -2);
    width: 1px;
    background: var(--cr-frame-blue);
    pointer-events: none;
  }
  /* =========================================================
   MATRIX ROWS
   ========================================================= */
  #cmdctrl-range-matrix .cr-row {
    display: grid;
    grid-template-columns:
      var(--cr-env-width)
      repeat(4, minmax(0, 1fr));
    gap: var(--cr-grid-gap);
    position: relative;
    padding: 30px 0;
  }
  /* =========================================================
   ROW DIVIDERS
   ========================================================= */
  /* Blue divider only across difficulty area */
  #cmdctrl-range-matrix .cr-row + .cr-row::after {
    content: "";
    position: absolute;
    top: 0;
    left: calc(var(--cr-env-width) + var(--cr-grid-gap));
    right: 0;
    height: 1px;
    background: var(--cr-frame-blue);
    pointer-events: none;
    z-index: 4;
  }
  /* Orange divider only across Environment frame */
  #cmdctrl-range-matrix .cr-row + .cr-row::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: var(--cr-env-width);
    height: 1px;
    background: var(--cr-frame-orange);
    pointer-events: none;
    z-index: 11;
  }
  /* =========================================================
   ENVIRONMENT COLUMN
   ========================================================= */
  #cmdctrl-range-matrix .cr-category {
    position: relative;
    display: flex;
    align-items: center;
    align-self: stretch;
    min-height: 175px;
    padding: 28px;
    background: transparent;
    border: 0;
    border-radius: 0;
    z-index: 5;
  }
  #cmdctrl-range-matrix .cr-category-name {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  #cmdctrl-range-matrix .cr-category-name span {
    display: block;
    margin-top: 2px;
    color: var(--cr-orange);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.1em;
  }
  /* Orange junction nodes */
  #cmdctrl-range-matrix .cr-row + .cr-row .cr-category::after {
    content: "";
    position: absolute;
    top: -35px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: var(--cr-frame-orange);
    border-radius: 50%;
    z-index: 15;
  }
  /* =========================================================
   MATRIX CELLS
   ========================================================= */
  #cmdctrl-range-matrix .cr-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    min-width: 0;
    opacity: 1;
  }
  /* =========================================================
   VERTICAL COLUMN DIVIDERS
   ========================================================= */
  /*
   Actual children:
   1 = Environment
   2 = Basic
   3 = Intermediate
   4 = Advanced
   5 = Elite
   Basic's left border is supplied by the outer blue frame.
*/
  #cmdctrl-range-matrix .cr-row .cr-cell:not(:nth-child(2))::before {
    content: "";
    position: absolute;
    top: -30px;
    bottom: -30px;
    left: calc(var(--cr-grid-gap) / -2);
    width: 1px;
    background: var(--cr-frame-blue);
    pointer-events: none;
    z-index: 0;
  }
  /* =========================================================
   MOBILE DIFFICULTY LABEL
   ========================================================= */
  #cmdctrl-range-matrix .cr-mobile-level {
    display: none;
  }
  /* =========================================================
   RANGE CARD
   ========================================================= */
  #cmdctrl-range-matrix .cr-card {
    appearance: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 155px;
    height: 155px;
    max-width: 100%;
    margin: 0;
    padding: 20px;
    background: #fff;
    border: 2px solid var(--cr-orange);
    border-radius: 50%;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.16);
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease;
    z-index: 3;
  }
  #cmdctrl-range-matrix .cr-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.27);
  }
  #cmdctrl-range-matrix .cr-card:focus-visible {
    outline: 4px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
  }
  /* =========================================================
   RANGE LOGOS
   ========================================================= */
  #cmdctrl-range-matrix .cr-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 115px;
    height: 90px;
  }
  #cmdctrl-range-matrix .cr-card-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 115px;
    max-height: 85px;
    object-fit: contain;
  }
  /* =========================================================
   PLUS INDICATOR
   ========================================================= */
  #cmdctrl-range-matrix .cr-card-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 3px;
    right: 3px;
    width: 30px;
    height: 30px;
    background: var(--cr-orange);
    border: 3px solid #fff;
    border-radius: 50%;
    color: #111;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
    transition: transform 0.25s ease;
  }
  #cmdctrl-range-matrix .cr-card:hover .cr-card-plus {
    transform: rotate(90deg);
  }
  /* =========================================================
   AUTOMATIC RANGE CLUSTERS
   ========================================================= */
  /* =========================================================
   ONE RANGE
   ========================================================= */
  #cmdctrl-range-matrix .cr-cell.cr-count-1 {
    min-height: 175px;
  }
  /* =========================================================
   TWO RANGES
   ========================================================= */
  #cmdctrl-range-matrix .cr-cell.cr-count-2 {
    display: block;
    min-height: 245px;
  }
  #cmdctrl-range-matrix .cr-cell.cr-count-2 .cr-card {
    position: absolute;
    width: 140px;
    height: 140px;
    padding: 17px;
  }
  /* Top-left */
  #cmdctrl-range-matrix .cr-cell.cr-count-2 .cr-card:nth-of-type(1) {
    top: 12px;
    left: 50%;
    transform: translateX(-68%);
    z-index: 1;
  }
  /* Bottom-right */
  #cmdctrl-range-matrix .cr-cell.cr-count-2 .cr-card:nth-of-type(2) {
    top: 92px;
    left: 50%;
    transform: translateX(-32%);
    z-index: 2;
  }
  #cmdctrl-range-matrix .cr-cell.cr-count-2 .cr-card:nth-of-type(1):hover {
    transform: translateX(-68%) translateY(-6px);
    z-index: 20;
  }
  #cmdctrl-range-matrix .cr-cell.cr-count-2 .cr-card:nth-of-type(2):hover {
    transform: translateX(-32%) translateY(-6px);
    z-index: 20;
  }
  /* =========================================================
   THREE RANGES
   ========================================================= */
  #cmdctrl-range-matrix .cr-cell.cr-count-3 {
    display: block;
    min-height: 315px;
  }
  #cmdctrl-range-matrix .cr-cell.cr-count-3 .cr-card {
    position: absolute;
    width: 132px;
    height: 132px;
    padding: 16px;
  }
  /* Top-left */
  #cmdctrl-range-matrix .cr-cell.cr-count-3 .cr-card:nth-of-type(1) {
    top: 5px;
    left: 50%;
    transform: translateX(-74%);
    z-index: 1;
  }
  /* Center-right */
  #cmdctrl-range-matrix .cr-cell.cr-count-3 .cr-card:nth-of-type(2) {
    top: 88px;
    left: 50%;
    transform: translateX(-25%);
    z-index: 3;
  }
  /* Bottom-left */
  #cmdctrl-range-matrix .cr-cell.cr-count-3 .cr-card:nth-of-type(3) {
    top: 170px;
    left: 50%;
    transform: translateX(-74%);
    z-index: 2;
  }
  #cmdctrl-range-matrix .cr-cell.cr-count-3 .cr-card:nth-of-type(1):hover {
    transform: translateX(-74%) translateY(-6px);
    z-index: 20;
  }
  #cmdctrl-range-matrix .cr-cell.cr-count-3 .cr-card:nth-of-type(2):hover {
    transform: translateX(-25%) translateY(-6px);
    z-index: 20;
  }
  #cmdctrl-range-matrix .cr-cell.cr-count-3 .cr-card:nth-of-type(3):hover {
    transform: translateX(-74%) translateY(-6px);
    z-index: 20;
  }
  /* =========================================================
   FOUR RANGES
   ========================================================= */
  #cmdctrl-range-matrix .cr-cell.cr-count-4 {
    display: block;
    min-height: 280px;
  }
  #cmdctrl-range-matrix .cr-cell.cr-count-4 .cr-card {
    position: absolute;
    width: 120px;
    height: 120px;
    padding: 14px;
  }
  /* Top-left */
  #cmdctrl-range-matrix .cr-cell.cr-count-4 .cr-card:nth-of-type(1) {
    top: 12px;
    left: 50%;
    transform: translateX(-82%);
    z-index: 1;
  }
  /* Top-right */
  #cmdctrl-range-matrix .cr-cell.cr-count-4 .cr-card:nth-of-type(2) {
    top: 12px;
    left: 50%;
    transform: translateX(-18%);
    z-index: 2;
  }
  /* Bottom-left */
  #cmdctrl-range-matrix .cr-cell.cr-count-4 .cr-card:nth-of-type(3) {
    top: 112px;
    left: 50%;
    transform: translateX(-82%);
    z-index: 3;
  }
  /* Bottom-right */
  #cmdctrl-range-matrix .cr-cell.cr-count-4 .cr-card:nth-of-type(4) {
    top: 112px;
    left: 50%;
    transform: translateX(-18%);
    z-index: 4;
  }
  #cmdctrl-range-matrix .cr-cell.cr-count-4 .cr-card:nth-of-type(1):hover,
  #cmdctrl-range-matrix .cr-cell.cr-count-4 .cr-card:nth-of-type(3):hover {
    transform: translateX(-82%) translateY(-6px);
    z-index: 20;
  }
  #cmdctrl-range-matrix .cr-cell.cr-count-4 .cr-card:nth-of-type(2):hover,
  #cmdctrl-range-matrix .cr-cell.cr-count-4 .cr-card:nth-of-type(4):hover {
    transform: translateX(-18%) translateY(-6px);
    z-index: 20;
  }
  /* =========================================================
   FIVE OR MORE
   ========================================================= */
  #cmdctrl-range-matrix .cr-cell.cr-count-many {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 0;
    min-height: 300px;
    padding: 15px 0;
  }
  #cmdctrl-range-matrix .cr-cell.cr-count-many .cr-card {
    position: relative;
    width: 112px;
    height: 112px;
    margin: -7px !important;
    padding: 13px;
  }
  #cmdctrl-range-matrix .cr-cell.cr-count-many .cr-card:hover {
    z-index: 20;
  }
  /* =========================================================
   CLUSTER LOGO SIZES
   ========================================================= */
  #cmdctrl-range-matrix .cr-cell.cr-count-2 .cr-card-logo,
  #cmdctrl-range-matrix .cr-cell.cr-count-3 .cr-card-logo {
    width: 95px;
    height: 72px;
  }
  #cmdctrl-range-matrix .cr-cell.cr-count-2 .cr-card-logo img,
  #cmdctrl-range-matrix .cr-cell.cr-count-3 .cr-card-logo img {
    max-width: 95px;
    max-height: 68px;
  }
  #cmdctrl-range-matrix .cr-cell.cr-count-4 .cr-card-logo,
  #cmdctrl-range-matrix .cr-cell.cr-count-many .cr-card-logo {
    width: 82px;
    height: 62px;
  }
  #cmdctrl-range-matrix .cr-cell.cr-count-4 .cr-card-logo img,
  #cmdctrl-range-matrix .cr-cell.cr-count-many .cr-card-logo img {
    max-width: 82px;
    max-height: 58px;
  }
  /* Smaller + indicators in clusters */
  #cmdctrl-range-matrix .cr-cell.cr-count-2 .cr-card-plus,
  #cmdctrl-range-matrix .cr-cell.cr-count-3 .cr-card-plus,
  #cmdctrl-range-matrix .cr-cell.cr-count-4 .cr-card-plus,
  #cmdctrl-range-matrix .cr-cell.cr-count-many .cr-card-plus {
    width: 26px;
    height: 26px;
    border-width: 2px;
    font-size: 17px;
  }
  /* =========================================================
   MODAL
   ========================================================= */

body.cr-modal-open {
    overflow: hidden;
}
#cmdctrl-range-matrix .cr-modal {
    display: none;
	position: fixed !important;
	z-index: 2147483000 !important;
		top: var(--cr-modal-nav-offset);
  	right: 0;
  	bottom: 0;
  	left: 0;
    align-items: center;
    justify-content: center;
    padding: 24px;
	  	overflow-x: hidden;
	  	overflow-y: auto;
}
#cmdctrl-range-matrix .cr-modal.is-open {
    display: flex;
}
#cmdctrl-range-matrix .cr-modal-backdrop {
    position: absolute;
    inset: 0;
	z-index: 0 !important;
    background: rgba(0,23,47,.88);
    backdrop-filter: blur(6px);
}
#cmdctrl-range-matrix .cr-modal-dialog {
    position: relative;
	z-index: 1 !important;
		top: auto;
    width: 100%;
    max-width: 1050px;
  	box-sizing: border-box;
    max-height: calc(
        100dvh -
        var(--cr-modal-nav-offset) -
        32px);
    overflow-y: auto;
  	overflow-x: hidden;
    padding: 48px 52px 50px;
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 30px 90px rgba(0,0,0,.42);
  	-webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Keep the Divi section containing an open modal above later sections. */
.et_pb_section:has(
    #cmdctrl-range-matrix .cr-modal[aria-hidden="false"]
) {
    position: relative !important;
    z-index: 2147482999 !important;
}
@supports not (height: 100dvh) {
    #cmdctrl-range-matrix .cr-modal-dialog {
        max-height: calc(100vh - 48px);
    }
    
  @media (max-width: 900px) {
        #cmdctrl-range-matrix .cr-modal-dialog {
            max-height: calc(100vh - 32px);
        }
    }

    @media (max-width: 600px) {
        #cmdctrl-range-matrix .cr-modal-dialog {
            max-height: calc(100vh - 16px);
        }
    }
}
/* =========================================================
   CLOSE BUTTON
   ========================================================= */

#cmdctrl-range-matrix .cr-modal-close {
    appearance: none;
    position: absolute;
    top: 30px;
    right: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    background: #fff;
    border: 3px solid #101820;
    border-radius: 50%;
    color: #00172F;
    font-family: inherit;
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition:
        background .2s ease,
        transform .2s ease;
}
#cmdctrl-range-matrix .cr-modal-close:hover {
    background: #f2f5f6;
    transform: scale(1.04);
}

/* =========================================================
   MODAL HEADER
   ========================================================= */

#cmdctrl-range-matrix .cr-detail-header {
    padding-right: 90px;
}
#cmdctrl-range-matrix .cr-modal-content h2 {
    margin: 0 0 18px;
    padding: 0;
    color: #111;
    font-size: clamp(36px,5vw,40px);
    font-weight: 500;
    line-height: 1.05;
}

/* Pills */

#cmdctrl-range-matrix .cr-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    align-items: center;
}
#cmdctrl-range-matrix .cr-detail-badge {
		display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}
#cmdctrl-range-matrix .cr-detail-badge.environment {
    color: #00729c;
    background: #e5f4fa;
    border-color: #b8e0ef;
}
#cmdctrl-range-matrix .cr-detail-badge.difficulty {
    color: #670f48;
    background: #f4e8f0;
    border-color: #dfc2d4;
}
#cmdctrl-range-matrix .cr-detail-badge.challenges {
    color: #a95300;
    background: #fff0dd;
    border-color: #f8d3a5;
}
#cmdctrl-range-matrix .cr-detail-badge.vulnerabilities {
    color: #7e122a;
    background: #fbe7e9;
    border-color: #efbfc5;
} 
#cmdctrl-range-matrix .cr-detail-badge.session {
    color: #00172f;
    background: #e8edf2;
    border-color: #c8d4de;
}
    @media (max-width: 767px) {
        #cmdctrl-range-matrix .cr-detail-badges {
            gap: 8px;
        }
        #cmdctrl-range-matrix .cr-detail-badge {
            padding: 7px 11px;
            font-size: 13px;
        }
    }
  
/* =========================================================
   DESCRIPTION
   ========================================================= */

#cmdctrl-range-matrix .cr-detail-description {
    margin: 0 0 34px;
    color: #444;
    font-size: 17px;
    line-height: 1.55;
}

/* =========================================================
   TWO-COLUMN BODY
   ========================================================= */

#cmdctrl-range-matrix .cr-detail-columns {
    display: grid;
    grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
    gap: 50px;
    align-items: start;
}


/* Section headings */

#cmdctrl-range-matrix .cr-detail-heading {
    margin: 0 0 10px;
    color: #00729C;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* =========================================================
   RANGE DETAILS
   ========================================================= */

#cmdctrl-range-matrix .cr-detail-list {
    margin: 0 0 34px;
}
#cmdctrl-range-matrix .cr-detail-item {
    padding: 0 0 10px;
    margin: 0 0 10px;
    border-bottom: 1px solid #D7E0E4;
}
#cmdctrl-range-matrix .cr-detail-item:last-child {
    border-bottom: 0;
}
#cmdctrl-range-matrix .cr-detail-label {
    display: block;
    color: #6D7A84;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}
#cmdctrl-range-matrix .cr-detail-value {
    display: block;
    color: #00172F;
    font-size: 16px;
    line-height: 1.45;
}

/* =========================================================
   SKILLS GAINED
   ========================================================= */

#cmdctrl-range-matrix .cr-skill-list {
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}
#cmdctrl-range-matrix .cr-skill-list li {
    position: relative;
    margin: 0 0 5px;
    padding: 0 0 0 22px;
    color: #444;
    font-size: 16px;
    line-height: 1.45;
}
#cmdctrl-range-matrix .cr-skill-list li::before {
    content: "";
    position: absolute;
    top: .58em;
    left: 2px;
    width: 7px;
    height: 7px;
    background: #00729C;
    border-radius: 50%;
}

/* =========================================================
   CHALLENGE COVERAGE TAGS
   ========================================================= */

#cmdctrl-range-matrix .cr-coverage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
#cmdctrl-range-matrix .cr-coverage-tag {
    display: inline-block;
    padding: 8px 11px;
    background: #F1F3F4;
    border-radius: 8px;
    color: #444;
    font-size: 14px;
    line-height: 1;
}
#cmdctrl-range-matrix .cr-coverage-note {
    margin: 12px 0 0;
    color: #697680;
    font-size: 14px;
    line-height: 1.5;
}

/* =========================================================
   CHALLENGE MIX
   ========================================================= */

#cmdctrl-range-matrix .cr-challenge-mix {
    margin-top: 30px;
}
#cmdctrl-range-matrix .cr-mix-bar {
    display: flex;
    width: 100%;
    height: 16px;
    overflow: hidden;
    margin-top: 14px;
    border-radius: 100px;
    background: #E8EDEF;
}
#cmdctrl-range-matrix .cr-mix-easy {
    width: var(--easy);
    background: #9CD6ED;
}
#cmdctrl-range-matrix .cr-mix-medium {
    width: var(--medium);
    background: #00729C;
}
#cmdctrl-range-matrix .cr-mix-difficult {
    width: var(--difficult);
    background: #F68E1E;
}
#cmdctrl-range-matrix .cr-mix-labels {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin-top: 10px;
    color: #697680;
    font-size: 13px;
}
#cmdctrl-range-matrix .cr-mix-labels span:nth-child(2) {
    text-align: center;
}
#cmdctrl-range-matrix .cr-mix-labels span:nth-child(3) {
    text-align: right;
}

/* =========================================================
   MODAL RESPONSIVENESS
   ========================================================= */

@media (max-width: 900px) {
    #cmdctrl-range-matrix .cr-modal {
        padding: 16px;
    }
    #cmdctrl-range-matrix .cr-modal-dialog {
        top: auto;
      	max-height: calc(100dvh - 32px);
      	padding: 40px 34px 40px;
        border-radius: 24px;
    }
    #cmdctrl-range-matrix .cr-detail-columns {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 600px) {
  #cmdctrl-range-matrix {
        --cr-modal-nav-offset: 78px;
    }
    #cmdctrl-range-matrix .cr-modal {
        padding: 8px;
    }
    #cmdctrl-range-matrix .cr-modal-dialog {
      	width: 100%;
      	max-width: 100%;
      	max-height: calc(
            100dvh -
            var(--cr-modal-nav-offset) -
            16px);
        padding: 30px 22px 30px;
        border-radius: 20px;
      	overflow-y: auto;
    		overflow-x: hidden;
    		-webkit-overflow-scrolling: touch;
    }
    #cmdctrl-range-matrix .cr-modal-close {
        top: 18px;
        right: 18px;
        width: 44px;
        height: 44px;
        border-width: 2px;
        font-size: 25px;
    }
    #cmdctrl-range-matrix .cr-detail-header {
        padding-right: 55px;
    }
    #cmdctrl-range-matrix .cr-modal-content h2 {
        margin-bottom: 14px;
        font-size: 32px;
    }
    #cmdctrl-range-matrix .cr-detail-description {
        margin-bottom: 25px;
        font-size: 16px;
    }
    #cmdctrl-range-matrix .cr-detail-columns {
        gap: 10px;
    }
}
  
  /* =========================================================
   TABLET
   ========================================================= */
  @media (max-width: 1100px) {
    #cmdctrl-range-matrix {
      padding: 32px 24px;
    }
    /* Hide desktop frame system */
    #cmdctrl-range-matrix .cr-frame-svg {
      display: none;
    }
    #cmdctrl-range-matrix .cr-matrix-header {
      display: none;
    }
    #cmdctrl-range-matrix .cr-row + .cr-row::before,
    #cmdctrl-range-matrix .cr-row + .cr-row::after,
    #cmdctrl-range-matrix .cr-row .cr-cell::before,
    #cmdctrl-range-matrix .cr-row + .cr-row .cr-category::after {
      display: none;
    }
    #cmdctrl-range-matrix .cr-row {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 22px;
      padding: 30px 0;
    }
    #cmdctrl-range-matrix .cr-category {
      grid-column: 1 / -1;
      min-height: auto;
      padding: 15px 18px;
      background: linear-gradient(
        135deg,
        rgba(2, 15, 28, 0.96),
        rgba(4, 31, 47, 0.88)
      );
      border-left: 4px solid var(--cr-orange);
      border-radius: 10px;
    }
    #cmdctrl-range-matrix .cr-category-name span {
      display: inline-block;
      margin-left: 5px;
    }
    #cmdctrl-range-matrix .cr-detail-list {
      margin: 0px;
    }
    #cmdctrl-range-matrix .cr-mobile-level {
      display: block;
      margin-bottom: 6px;
      color: rgba(255, 255, 255, 0.7);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-align: center;
      text-transform: uppercase;
    }
    #cmdctrl-range-matrix .cr-cell.cr-count-1 .cr-card {
      width: 135px;
      height: 135px;
      top: 10px;
    }
    #cmdctrl-range-matrix .cr-cell.cr-count-2 {
      min-height: 225px;
    }
    #cmdctrl-range-matrix .cr-cell.cr-count-2 .cr-card {
      width: 125px;
      height: 125px;
    }
    #cmdctrl-range-matrix .cr-cell.cr-count-3 {
      min-height: 285px;
    }
    #cmdctrl-range-matrix .cr-cell.cr-count-3 .cr-card {
      width: 118px;
      height: 118px;
    }
    #cmdctrl-range-matrix .cr-cell.cr-count-3 .cr-card:nth-of-type(2) {
      top: 80px;
    }
    #cmdctrl-range-matrix .cr-cell.cr-count-3 .cr-card:nth-of-type(3) {
      top: 155px;
    }
    #cmdctrl-range-matrix .cr-cell.cr-count-4 {
      min-height: 265px;
    }
    #cmdctrl-range-matrix .cr-cell.cr-count-4 .cr-card {
      width: 108px;
      height: 108px;
    }
    #cmdctrl-range-matrix .cr-cell.cr-count-4 .cr-card:nth-of-type(3),
    #cmdctrl-range-matrix .cr-cell.cr-count-4 .cr-card:nth-of-type(4) {
      top: 100px;
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    #cmdctrl-range-matrix .cr-cell {
        position: relative;
    }
    #cmdctrl-range-matrix .cr-mobile-level {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        margin: 0;
        color: rgba(255,255,255,.70);
        font-size: 14px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: .10em;
        text-align: center;
        text-transform: uppercase;
        z-index: 30;
        pointer-events: none;
    }

    /* =====================================================
       TWO-RANGE CLUSTER
       Add room beneath the difficulty label
       ===================================================== */

    #cmdctrl-range-matrix .cr-cell.cr-count-2 {
        min-height: 255px;
    }
    #cmdctrl-range-matrix
    .cr-cell.cr-count-2
    .cr-card:nth-of-type(1) {
        top: 42px;
    }
    #cmdctrl-range-matrix
    .cr-cell.cr-count-2
    .cr-card:nth-of-type(2) {
        top: 122px;
    }

    /* =====================================================
       THREE-RANGE CLUSTER
       ===================================================== */

    #cmdctrl-range-matrix .cr-cell.cr-count-3 {
        min-height: 315px;
    }
    #cmdctrl-range-matrix
    .cr-cell.cr-count-3
    .cr-card:nth-of-type(1) {
        top: 40px;
    }
    #cmdctrl-range-matrix
    .cr-cell.cr-count-3
    .cr-card:nth-of-type(2) {
        top: 115px;
    }
    #cmdctrl-range-matrix
    .cr-cell.cr-count-3
    .cr-card:nth-of-type(3) {
        top: 190px;
    }

    /* =====================================================
       FOUR-RANGE CLUSTER
       ===================================================== */

    #cmdctrl-range-matrix .cr-cell.cr-count-4 {
        min-height: 280px;
    }
    #cmdctrl-range-matrix
    .cr-cell.cr-count-4
    .cr-card:nth-of-type(1),
    #cmdctrl-range-matrix
    .cr-cell.cr-count-4
    .cr-card:nth-of-type(2) {
        top: 42px;
    }
    #cmdctrl-range-matrix
    .cr-cell.cr-count-4
    .cr-card:nth-of-type(3),
    #cmdctrl-range-matrix
    .cr-cell.cr-count-4
    .cr-card:nth-of-type(4) {
        top: 140px;
    }

    /* =====================================================
       FIVE+ RANGES
       Reserve space above wrapped cluster
       ===================================================== */

    #cmdctrl-range-matrix .cr-cell.cr-count-many {
        min-height: 330px;
        padding-top: 35px;
    }
}
  
  /* =========================================================
   MOBILE
   ========================================================= */
  
  @media (max-width: 767px) {
    #cmdctrl-range-matrix .cr-row {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    #cmdctrl-range-matrix .cr-category {
        grid-column: auto;
    }
    #cmdctrl-range-matrix .cr-cell,
    #cmdctrl-range-matrix .cr-cell.cr-count-1,
    #cmdctrl-range-matrix .cr-cell.cr-count-2,
    #cmdctrl-range-matrix .cr-cell.cr-count-3,
    #cmdctrl-range-matrix .cr-cell.cr-count-4,
    #cmdctrl-range-matrix .cr-cell.cr-count-many {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
        min-height: 0;
        padding: 0;
        width: 100%;
    }
    #cmdctrl-range-matrix .cr-cell.is-empty {
        display: none;
    }

    /* Make every mobile difficulty label sit above its group */

    #cmdctrl-range-matrix .cr-mobile-level {
        display: block;
        position: static !important;
        width: 100%;
        margin: 0 0 10px;
        color: rgba(255,255,255,.70);
        font-size: 14px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: .10em;
        text-align: center;
        text-transform: uppercase;
        pointer-events: none;
    }

    /* Reset all cards so they no longer use absolute cluster positioning */

    #cmdctrl-range-matrix
    .cr-cell.cr-count-1 .cr-card,
    #cmdctrl-range-matrix
    .cr-cell.cr-count-2 .cr-card,
    #cmdctrl-range-matrix
    .cr-cell.cr-count-3 .cr-card,
    #cmdctrl-range-matrix
    .cr-cell.cr-count-4 .cr-card,
    #cmdctrl-range-matrix
    .cr-cell.cr-count-many .cr-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        width: 135px;
        height: 135px;
        margin: 0 !important;
        transform: none !important;
    }
    #cmdctrl-range-matrix
    .cr-cell .cr-card:hover {
        transform: translateY(-5px) !important;
    }
}
  
  /* =========================================================
   SMALL MOBILE
   ========================================================= */
  
  @media (max-width: 450px) {
    #cmdctrl-range-matrix .cr-row {
      grid-template-columns: 1fr;
      gap: 32px;
    }
    #cmdctrl-range-matrix .cr-category {
      grid-column: auto;
    }
    #cmdctrl-range-matrix .cr-cell.cr-count-1 .cr-card,
    #cmdctrl-range-matrix .cr-cell.cr-count-2 .cr-card,
    #cmdctrl-range-matrix .cr-cell.cr-count-3 .cr-card,
    #cmdctrl-range-matrix .cr-cell.cr-count-4 .cr-card,
    #cmdctrl-range-matrix .cr-cell.cr-count-many .cr-card {
      width: 155px;
      height: 155px;
    }
  }
