@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@500;600;700&family=Instrument+Sans:wght@400;500;600;700&display=swap');

/* =========================================================
   ClimateMaster discontinued literature archive
   Scoped to .cm-archive for safe Sitevision use
   ========================================================= */

.cm-archive {
  --cm-teal: #007C83;
  --cm-deep-teal: #174F52;
  --cm-carbon: #263238;
  --cm-muted: #667577;
  --cm-border: #DCE5E3;
  --cm-frost: #F4F7F6;
  --cm-white: #FFFFFF;

  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 72px;
  background: var(--cm-white);
  color: var(--cm-carbon);

  font-family: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.cm-archive *,
.cm-archive *::before,
.cm-archive *::after {
  box-sizing: border-box;
}

.cm-archive h1,
.cm-archive h2,
.cm-archive h3,
.cm-archive p {
  margin-top: 0;
}

.cm-archive a {
  text-underline-offset: 3px;
}


/* =========================================================
   HERO
   ========================================================= */

.cm-archive-hero {
  max-width: 880px;
  padding: 8px 0 30px;
}

.cm-archive-eyebrow {
  margin-bottom: 7px;
  color: var(--cm-teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cm-archive h1 {
  max-width: 820px;
  margin-bottom: 14px;
  color: var(--cm-deep-teal);

  font-family: "Figtree", "Segoe UI", Arial, sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.cm-archive-intro {
  max-width: 800px;
  margin-bottom: 0;
  color: var(--cm-muted);
  font-size: 1.05rem;
}


/* =========================================================
   STICKY SECTION NAVIGATION — single-row desktop
   ========================================================= */

.cm-archive-jump {
  position: sticky;
  top: 10px;
  z-index: 20;

  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;

  margin: 0 0 42px;
  padding: 13px 16px;

  overflow-x: auto;

  border: 1px solid #C8D8D5;
  border-left: 5px solid var(--cm-teal);
  border-radius: 4px;

  background: #EDF5F3;

  box-shadow: 0 6px 18px rgba(23, 79, 82, 0.08);

  scrollbar-width: thin;
}

.cm-archive-jump::before {
  content: "Jump to section";

  flex: 0 0 auto;

  margin-right: 6px;

  color: var(--cm-deep-teal);

  font-family: "Figtree", "Segoe UI", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;

  white-space: nowrap;
}

.cm-archive-jump a {
  flex: 0 0 auto;

  padding: 7px 10px;

  border: 1px solid #BCD0CC;
  border-radius: 3px;

  background: #FFFFFF;
  color: var(--cm-deep-teal);

  font-size: 0.76rem;
  font-weight: 650;

  text-decoration: none;
  white-space: nowrap;

  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.cm-archive-jump a:hover,
.cm-archive-jump a:focus-visible {
  border-color: var(--cm-teal);

  background: var(--cm-teal);
  color: #FFFFFF;

  transform: translateY(-1px);
}

.cm-archive-jump a:focus-visible {
  outline: 2px solid var(--cm-deep-teal);
  outline-offset: 2px;
}

/* =========================================================
   SECTION COLOR SYSTEM
   ========================================================= */

.cm-archive-section {
  --section-accent: #007C83;
  --section-tint: #EAF6F6;

  margin: 0 0 18px;

  scroll-margin-top: 90px;

  border: 1px solid var(--cm-border);

  background: var(--cm-white);
}

/* 00 — legacy technical */
.cm-archive-section--legacy {
  --section-accent: #174F52;
  --section-tint: #E8F0EF;
}

/* 01 — decoders */
.cm-archive-section--decoders {
  --section-accent: #007C83;
  --section-tint: #EAF6F6;
}

/* 02 — water-to-air */
.cm-archive-section--water-to-air {
  --section-accent: #2F7D68;
  --section-tint: #EDF6F2;
}

/* 03 — water-to-water */
.cm-archive-section--water-to-water {
  --section-accent: #3E6E9C;
  --section-tint: #EDF3F8;
}

/* 04 — air-cooled / PTAC */
.cm-archive-section--air-cooled {
  --section-accent: #8A5D3B;
  --section-tint: #F7F0EB;
}

/* 05 — DOAS / ERV */
.cm-archive-section--doas-erv {
  --section-accent: #6B5A8E;
  --section-tint: #F2EFF7;
}

/* 06 — thermostats / controls */
.cm-archive-section--controls-thermostats {
  --section-accent: #A66A1F;
  --section-tint: #FBF4E9;
}

/* 07 — 50Hz */
.cm-archive-section--50hz {
  --section-accent: #59656B;
  --section-tint: #F1F3F4;
}


/* =========================================================
   COLLAPSIBLE SECTION HEADERS
   ========================================================= */

.cm-archive-section > summary {
  position: relative;

  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto 28px;
  gap: 18px;
  align-items: center;

  min-height: 86px;
  padding: 14px 18px;

  cursor: pointer;
  list-style: none;

  border-left: 6px solid var(--section-accent);

  background: var(--section-tint);
}

.cm-archive-section > summary::-webkit-details-marker {
  display: none;
}

.cm-archive-section > summary::marker {
  content: "";
}


/* + / − control */

.cm-archive-section > summary::after {
  content: "+";

  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;

  color: var(--section-accent);

  font-family: "Figtree", "Segoe UI", Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
}

.cm-archive-section[open] > summary::after {
  content: "−";
}


/* numbered signature tab */

.cm-archive-number {
  display: grid;
  place-items: center;

  min-height: 48px;
  padding: 8px;

  border: 1px solid var(--section-accent);

  background: rgba(255, 255, 255, 0.62);

  color: var(--section-accent);

  font-family: "Figtree", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}


/* summary text */

.cm-archive-summary-text {
  display: grid;
  gap: 3px;
}

.cm-archive-summary-text strong {
  color: var(--section-accent);

  font-family: "Figtree", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  font-weight: 650;
  line-height: 1.08;
}

.cm-archive-summary-text span {
  color: var(--cm-muted);
  font-size: 0.82rem;
}

.cm-archive-count {
  color: var(--cm-muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}


/* section hover/focus */

.cm-archive-section > summary:hover .cm-archive-summary-text strong,
.cm-archive-section > summary:focus-visible .cm-archive-summary-text strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cm-archive-section > summary:focus-visible {
  outline: 3px solid var(--section-accent);
  outline-offset: 3px;
}


/* =========================================================
   TABLE
   ========================================================= */

.cm-archive-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.cm-archive-table {
  width: 100%;

  border-collapse: collapse;
  table-layout: fixed;

  background: var(--cm-white);
}

.cm-archive-table th,
.cm-archive-table td {
  padding: 16px 18px;

  vertical-align: top;

  border-bottom: 1px solid var(--cm-border);

  text-align: left;
}


/* table column widths */

.cm-archive-table thead th:nth-child(1) {
  width: 22%;
}

.cm-archive-table thead th:nth-child(2) {
  width: 39%;
}

.cm-archive-table thead th:nth-child(3) {
  width: 39%;
}


/* table header */

.cm-archive-table thead th {
  background: var(--cm-white);

  color: var(--section-accent);

  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.075em;

  text-transform: uppercase;
}


/* product column */

.cm-archive-table tbody th {
  color: var(--cm-carbon);

  font-family: "Figtree", "Segoe UI", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.35;
}


/* description */

.cm-archive-table tbody td {
  color: var(--cm-carbon);

  font-size: 0.9rem;
  line-height: 1.45;
}


/* subtle row distinction */

.cm-archive-table tbody tr:nth-child(even) {
  background: rgba(244, 247, 246, 0.38);
}

.cm-archive-table tbody tr:hover {
  background: var(--section-tint);
}


/* remove final table border */

.cm-archive-table tbody tr:last-child th,
.cm-archive-table tbody tr:last-child td {
  border-bottom: 0;
}


/* =========================================================
   RESOURCE LINKS
   ========================================================= */

.cm-archive-resources {
  display: grid;
  gap: 6px;
}

.cm-archive-resource {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;

  width: fit-content;
  max-width: 100%;

  color: var(--cm-carbon);

  text-decoration: none;
}

.cm-archive-resource__type {
  color: var(--section-accent);

  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.4;
}

.cm-archive-resource__name {
  min-width: 0;

  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.cm-archive-resource:hover .cm-archive-resource__name,
.cm-archive-resource:focus-visible .cm-archive-resource__name {
  color: var(--section-accent);

  text-decoration: underline;
  text-underline-offset: 3px;
}

.cm-archive-resource:focus-visible {
  outline: 2px solid var(--section-accent);
  outline-offset: 3px;
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

.cm-archive-back {
  display: flex;
  justify-content: flex-end;

  margin: 0;
  padding: 20px 18px 22px;
}

.cm-archive-back a {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: var(--cm-deep-teal);

  font-size: 0.8rem;
  font-weight: 700;

  text-decoration: none;
}

.cm-archive-back a::after {
  content: "↑";

  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;
  flex: 0 0 42px;

  border-radius: 50%;

  background: var(--cm-teal);
  color: #FFFFFF;

  font-family: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1;

  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.cm-archive-back a:hover,
.cm-archive-back a:focus-visible {
  color: var(--cm-teal);

  text-decoration: underline;
  text-underline-offset: 3px;
}

.cm-archive-back a:hover::after,
.cm-archive-back a:focus-visible::after {
  transform: translateY(-3px);

  background: var(--cm-deep-teal);
}

.cm-archive-back a:focus-visible {
  outline: 2px solid var(--cm-teal);
  outline-offset: 5px;

  border-radius: 3px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .cm-archive-section > summary {
    grid-template-columns: 56px minmax(0, 1fr) auto 28px;
    gap: 14px;
  }

  .cm-archive-table thead th:nth-child(1) {
    width: 24%;
  }

  .cm-archive-table thead th:nth-child(2) {
    width: 36%;
  }

  .cm-archive-table thead th:nth-child(3) {
    width: 40%;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

  .cm-archive-jump {
    top: 0;

    margin-right: -16px;
    margin-bottom: 34px;
    margin-left: -16px;

    padding: 12px 16px;

    border-right: 0;
    border-left-width: 5px;
    border-radius: 0;
  }

  .cm-archive-jump::before {
    margin-right: 5px;
  }

}


  /* hero */

  .cm-archive h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }


  /* sticky nav goes edge-to-edge */

  .cm-archive-jump {
    top: 0;

    margin-right: -16px;
    margin-bottom: 36px;
    margin-left: -16px;

    padding-right: 16px;
    padding-left: 16px;
  }


  /* accordion header */

  .cm-archive-section > summary {
    grid-template-columns: 52px minmax(0, 1fr) 26px;
    gap: 12px;

    min-height: 78px;

    padding: 13px 14px;
  }

  .cm-archive-count {
    display: none;
  }

  .cm-archive-number {
    min-height: 44px;

    font-size: 0.92rem;
  }

  .cm-archive-summary-text strong {
    font-size: 1.2rem;
  }

  .cm-archive-summary-text span {
    font-size: 0.77rem;
    line-height: 1.3;
  }


  /* ---------------------------------------------------------
     Transform the table into stacked archive records
     --------------------------------------------------------- */

  .cm-archive-table,
  .cm-archive-table tbody,
  .cm-archive-table tr,
  .cm-archive-table th,
  .cm-archive-table td {
    display: block;

    width: 100%;
  }

  .cm-archive-table {
    table-layout: auto;
  }


  /* visually hide desktop column headers */

  .cm-archive-table thead {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip: rect(0 0 0 0);
    clip-path: inset(50%);

    white-space: nowrap;
  }


  /* each product becomes a card-like record */

  .cm-archive-table tbody tr,
  .cm-archive-table tbody tr:nth-child(even) {
    padding: 18px 16px 20px;

    border-bottom: 1px solid var(--cm-border);

    background: var(--cm-white);
  }

  .cm-archive-table tbody tr:last-child {
    border-bottom: 0;
  }

  .cm-archive-table tbody tr:hover {
    background: var(--cm-white);
  }


  /* reset table-cell spacing */

  .cm-archive-table th,
  .cm-archive-table td {
    padding: 0;

    border: 0;
  }


  /* product */

  .cm-archive-table tbody th {
    margin-bottom: 5px;

    color: var(--section-accent);

    font-size: 1rem;
  }


  /* description */

  .cm-archive-table tbody td:nth-child(2) {
    margin-bottom: 13px;

    color: var(--cm-muted);

    font-size: 0.88rem;
  }


  /* resources */

  .cm-archive-resources {
    gap: 8px;
  }

  .cm-archive-resource {
    grid-template-columns: 46px minmax(0, 1fr);

    width: 100%;
  }

  .cm-archive-resource__name {
    font-size: 0.9rem;
  }


  /* back to top */

  .cm-archive-back {
    justify-content: flex-end;

    padding-right: 14px;
    padding-left: 14px;
  }

  .cm-archive-back a::after {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

  .cm-archive-section > summary {
    grid-template-columns: 46px minmax(0, 1fr) 24px;

    padding: 12px;
  }

  .cm-archive-number {
    min-height: 40px;
    padding: 6px;

    font-size: 0.85rem;
  }

  .cm-archive-summary-text strong {
    font-size: 1.08rem;
  }

  .cm-archive-summary-text span {
    font-size: 0.73rem;
  }

  .cm-archive-section > summary::after {
    width: 24px;
    height: 24px;

    font-size: 1.25rem;
  }

}