@layer presentation, site, responsive, utilities;

/* ==========================================================================
   Presentation helpers — single-purpose sizing, alignment, and color hooks
   referenced directly from the HTML.
   ========================================================================== */
@layer presentation {

  /* Fixed sizes */

  .presentation-width-570 {
    width: 570px;
  }

  .presentation-height-25 {
    height: 25px;
  }

  .presentation-height-33 {
    height: 33px;
  }

  .presentation-height-60 {
    height: 60px;
  }

  .presentation-height-70 {
    height: 70px;
  }

  .presentation-height-80 {
    height: 80px;
  }

  .presentation-height-100 {
    height: 100px;
  }

  .presentation-height-105 {
    height: 105px;
  }

  .presentation-height-350 {
    height: 350px;
  }

  /* Percentage widths (table columns) */

  .presentation-width-6pct {
    width: 6%;
  }

  .presentation-width-9pct {
    width: 9%;
  }

  .presentation-width-12pct {
    width: 12%;
  }

  .presentation-width-13pct {
    width: 13%;
  }

  .presentation-width-14pct {
    width: 14%;
  }

  .presentation-width-16pct {
    width: 16%;
  }

  .presentation-width-19pct {
    width: 19%;
  }

  .presentation-width-20pct {
    width: 20%;
  }

  .presentation-width-24pct {
    width: 24%;
  }

  .presentation-width-26pct {
    width: 26%;
  }

  .presentation-width-31pct {
    width: 31%;
  }

  .presentation-width-39pct {
    width: 39%;
  }

  .presentation-width-76pct {
    width: 76%;
  }

  /* Alignment */

  .presentation-align-left {
    text-align: left;
  }

  .presentation-align-center {
    text-align: center;
  }

  /* Colors */

  .presentation-bgcolor-f5ded3 {
    background-color: var(--color-row-peach);
  }

  .presentation-bgcolor-eaeaeb {
    background-color: var(--color-row-gray);
  }

  .presentation-bgcolor-993333 {
    background-color: var(--color-catalog-heading);
  }

  .presentation-bordercolor-eaeaeb {
    border-color: var(--color-row-gray);
  }
}

/* ==========================================================================
   Site styles — reset, layout shell, header, navigation, main content,
   tables, and footer.
   ========================================================================== */
@layer site {

  /* --- Reset and base typography --- */

  * {
    margin: 0;
    padding: 0;
  }

  body,
  td,
  th {
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    color: var(--color-text);
  }

  body {
    background-color: var(--color-page-background);
    text-align: center;
    padding-bottom: 3px;
  }

  ul {
    list-style-type: none;
  }

  sup {
    line-height: 0;
    font-size: 0.83em;
    vertical-align: super;
  }

  /* --- Layout shell --- */

  .site-shell {
    position: relative;
    max-width: var(--site-max-width);
    margin: 6px auto 0;
    padding-bottom: var(--space-sm);
    text-align: center;
    background-color: var(--color-surface);
    border-style: solid solid none;
    border-width: 2px 3px 0;
    border-color: var(--color-brand) var(--color-brand) var(--color-white);
  }

  /* --- Header --- */

  .site-header {
    position: relative;
    width: 100%;
    border-bottom: 2px solid var(--color-accent);
  }

  .site-logo {
    position: absolute;
    top: 0.1%;
    left: 1%;
    max-width: 17%;
    background-color: var(--color-logo-surface);
  }

  .header-badge {
    position: absolute;
    top: 7%;
    right: 6.5%;
    max-width: 11%;
  }

  .header-tagline {
    position: relative;
    max-width: 72%;
    margin: 1.5% auto;
    font-family: var(--font-display);
    font-size: 165%;
    font-style: italic;
    font-weight: bold;
    line-height: 1.2em;
    color: var(--color-emphasis);
    text-align: center;
  }

  .header-contact {
    display: inline;
    font-family: var(--font-contact);
  }

  .header-contact .Tel li {
    display: inline-block;
    font-family: var(--font-ui);
    font-style: italic;
    color: var(--color-black);
    text-align: center;
    padding: 0 9% 1%;
  }

  /* --- Header search --- */

  .site-search,
  .site-search :is(.search-field, .search-button) {
    box-sizing: border-box;
    height: var(--control-height);
    float: left;
  }

  .site-search {
    width: 192px;
  }

  .site-search :is(.search-field, .search-button) {
    font-size: 100%;
    border: var(--border-width) solid var(--color-control-border);
  }

  .site-search .search-field {
    font-family: var(--font-ui);
    outline: none;
    background-color: var(--color-highlight);
    text-align: center;
    width: 135px;
  }

  .site-search .search-button {
    font-family: var(--font-control);
    font-weight: bold;
    background-color: var(--color-button-surface);
    width: 43px;
  }

  .site-separator {
    background-color: var(--color-separator);
    height: 9px;
  }

  /* Hidden by default: the mobile menu (shown at narrow widths) and the
     decoy spans used to obfuscate the e-mail address from scrapers. */
  .mobile-nav,
  div.email > span:nth-child(1),
  div.email > span:nth-child(3),
  div.email > span:nth-child(4),
  div.email > span:nth-child(6),
  div.email > span:nth-child(7) {
    display: none;
  }

  /* --- Side navigation --- */

  .site-nav {
    clear: both;
    float: left;
    position: relative;
    box-sizing: border-box;
    width: 17.74%;
    height: auto;
    min-height: 500px;
    padding: 45px 12px 5px 0;
    text-align: right;
    background: var(--color-subtle-surface) url(../Assets/images/NavBackground_C.png) repeat-x;
  }

  .nav-home a:any-link {
    display: block;
    font-family: var(--font-ui);
    font-weight: bold;
    color: var(--color-brand);
    text-decoration: none;
    padding: 5px 9px 5px 1px;
    margin: 0 0 6px 12px;
  }

  /* Specificity bump: restores the larger size over `.site-nav li a`. */
  .site-nav .nav-home a:any-link {
    font-size: 115%;
  }

  .site-nav .site-separator {
    height: 0.5em;
  }

  .site-nav li {
    display: block;
  }

  .site-nav li a:any-link {
    display: block;
    font-family: var(--font-ui);
    font-size: 86%;
    font-weight: bold;
    color: var(--color-brand);
    text-decoration: none;
    padding: 1px 9px 1px 1px;
    margin: 2px 0 2px 5px;
  }

  .site-nav li a:hover {
    color: var(--color-accent);
    text-decoration: underline;
  }

  .site-nav li a:active {
    color: var(--color-brand);
    text-decoration: none;
  }

  .nav-heading {
    display: block;
    font-family: var(--font-body);
    font-style: italic;
    font-weight: bold;
    color: var(--color-catalog-heading);
    text-align: right;
    padding: var(--space-lg) 0 var(--space-sm);
  }

  /* --- Main content --- */

  .site-main {
    float: right;
    position: relative;
    box-sizing: border-box;
    width: 81.8%;
    padding: 0 0 0.17em;
    font-family: var(--font-ui);
    line-height: 20px;
    text-align: center;
  }

  :where(.site-main) div {
    font-family: var(--font-ui);
    font-size: var(--font-size-table);
  }

  .home-welcome {
    display: block;
    font-family: var(--font-display);
    font-size: 145%;
    font-style: italic;
    font-weight: bold;
    color: var(--color-brand);
    text-align: center;
    padding: var(--space-sm) 0 0.4em;
  }

  .page-title {
    margin: var(--space-md) 0;
    font-family: var(--font-ui);
    font-size: var(--font-size-section);
    font-weight: bold;
    line-height: 1.2;
    color: var(--color-brand);
    text-align: center;
  }

  .page-title:has(+ .page-subtitle) {
    margin-bottom: var(--space-xs);
  }

  .site-main .page-subtitle {
    margin: 0 var(--space-md);
    font-family: var(--font-ui);
    font-size: var(--font-size-body);
    font-weight: bold;
    line-height: 1.4;
    color: var(--color-brand);
    text-align: center;
  }

  .site-main .manufacturer,
  .site-main .manufacturer--compact {
    font-size: 105%;
    font-style: normal;
    font-weight: normal;
    color: var(--color-brand);
    padding-top: var(--space-xs);
    padding-bottom: 0.1em;
  }

  .site-main .highlights,
  .site-main .highlights--compact {
    font-size: 105%;
    font-style: normal;
    font-weight: normal;
    line-height: 1.2em;
    word-spacing: 0.05em;
    color: var(--color-brand);
  }

  .delivery-tagline {
    display: block;
    font-family: var(--font-display);
    font-size: 145%;
    font-style: italic;
    font-weight: bold;
    color: var(--color-emphasis);
    padding: var(--space-lg) 0 var(--space-xs);
  }

  .site-main .new-products a {
    font-family: var(--font-ui);
    font-size: 90%;
    font-weight: bold;
    color: var(--color-offering-link);
  }

  .site-main .product-summary {
    font-family: var(--font-ui);
    font-size: var(--font-size-body);
    padding: 0 100px;
  }

  .ss360-content-container img {
    max-height: 60px !important;
  }

  :where(.site-main) .content-intro {
    font-family: var(--font-body);
    font-size: var(--font-size-table-heading);
    font-weight: normal;
    color: var(--color-text);
    line-height: 1.5;
    text-align: justify;
    padding: var(--space-md) var(--space-xl) var(--space-lg);
    margin: 0;
  }

  :where(.site-main) .content-intro--continuation {
    padding-top: 0;
  }

  :where(.site-main) .content-intro--directory {
    text-align: left;
  }

  :where(.site-main) .section-banner {
    display: block;
    font-family: var(--font-display);
    font-size: var(--font-size-section);
    font-weight: bold;
    line-height: 1.2;
    color: var(--color-white);
    background-color: var(--color-brand);
    text-align: center;
    word-spacing: 0.25em;
    padding: 4px 0;
    margin: var(--space-sm) 1px 0;
  }

  :where(.site-main) .section-banner h2 {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
  }

  :where(.site-main) .document-instructions {
    word-spacing: 0.25em;
  }

  :where(.site-main) .section-banner .home-section-title {
    display: inline;
  }

  :where(.site-main) .document-instructions,
  :where(.site-main) .screening-note {
    font-family: var(--font-body);
    font-size: var(--font-size-table-heading);
    font-weight: bold;
    color: var(--color-white);
    background-color: var(--color-brand);
    line-height: 1.4;
    padding: 1px 10px 3px;
    margin: 0 1px;
  }

  :where(.site-main) .document-reader {
    font-family: var(--font-ui);
    font-size: var(--font-size-table-heading);
    font-weight: normal;
    color: var(--color-link);
    line-height: 1.4;
    padding: 0 10px;
    margin: 0;
  }

  :where(.site-main) .document-reader--overview {
    background-color: var(--color-row-gray);
  }

  :where(.site-main) .catalog-group {
    margin-top: var(--space-lg);
  }

  /* --- Tables --- */

  :where(.site-main) .site-table {
    border-collapse: collapse;
    text-align: center;
    width: 100%;
  }

  :where(.site-table) .part-family {
    color: var(--color-white);
    font-weight: bold;
    font-style: italic;
    background-color: var(--color-catalog-heading);
    font-size: var(--font-size-body);
  }

  :where(.site-main) .table--catalog .alternate-models a:any-link {
    display: inline-block;
    font-size: var(--font-size-small);
    line-height: 1.2em;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    margin: 0;
    padding: 3px 0 0;
  }

  :where(.site-main) .site-table th,
  :where(.site-main) .site-table td {
    border: var(--border-width) solid var(--color-white);
    border-top: none;
    text-align: center;
  }

  :where(.site-main) .site-table th {
    font-family: var(--font-body);
    font-size: var(--font-size-table-heading);
    font-weight: bold;
    color: var(--color-white);
  }

  :where(.site-main) .table--catalog th {
    background-color: var(--color-catalog-heading);
    padding: 0 3px 6px;
  }

  :where(.site-main) .table--catalog td {
    font-family: var(--font-ui);
    font-size: var(--font-size-table);
    font-weight: normal;
    color: var(--color-black);
    padding: 2px;
  }

  :where(.site-main) .table--catalog td.part-family {
    color: var(--color-white);
  }

  :where(.site-main) .table--catalog th[scope="row"] {
    font-family: var(--font-ui);
    font-size: var(--font-size-table);
    font-weight: normal;
    color: var(--color-black);
    padding: 2px;
    background-color: inherit;
  }

  :where(.site-main) .table--catalog a:any-link {
    display: block;
    font-family: var(--font-ui);
    font-size: var(--font-size-table-heading);
    font-weight: normal;
    color: var(--color-link);
    text-decoration: underline;
  }

  :where(.site-main) .table--catalog a:hover {
    color: var(--color-accent);
    font-weight: bold;
    background-color: var(--color-highlight);
  }

  :where(table.site-table) .rowA {
    background-color: var(--color-row-peach);
  }

  :where(table.site-table) .RowB {
    background-color: var(--color-row-gray);
  }

  :where(.site-main) .table--reference th {
    background-color: var(--color-reference-heading);
    padding: 8px 3px;
  }

  :where(.site-main) .table--reference td {
    font-family: var(--font-body);
    font-size: var(--font-size-table-heading);
    font-weight: normal;
    color: var(--color-reference-text);
    text-align: left;
    padding: 6px 6px 6px 10px;
  }

  :where(.site-main) .table--reference th[scope="row"] {
    font-family: var(--font-body);
    font-size: var(--font-size-table-heading);
    font-weight: normal;
    color: var(--color-reference-text);
    text-align: left;
    padding: 6px 6px 6px 10px;
    background-color: inherit;
  }

  :where(.site-main) .table--reference th[scope="row"].rowA {
    background-color: var(--color-row-peach);
  }

  :where(.site-main) .table--screening {
    margin-bottom: 5em;
  }

  :where(.site-main) .table--directory td,
  :where(.site-main) .table--directory th[scope="row"] {
    color: var(--color-brand);
    text-align: center;
    vertical-align: middle;
    line-height: 18px;
    padding: 8px;
  }

  /* --- Footer --- */

  .clear-floats {
    clear: both;
    font-family: var(--font-body);
    font-size: var(--font-size-table);
    color: var(--color-brand);
  }

  .site-modified {
    font-family: var(--font-ui);
    font-size: 86%;
    font-style: normal;
    font-weight: normal;
    color: var(--color-brand);
    text-align: right;
    padding: 7px 15px 5px 0;
  }

  .site-footer {
    width: 100%;
    font-family: var(--font-body);
    font-weight: bold;
    text-align: center;
    background-color: var(--color-brand);
    padding: 3px 0 0;
    border-style: solid none;
    border-width: 2px 0 3px;
    border-color: var(--color-brand);
  }

  .footer-brand {
    font-family: var(--font-body);
    font-size: 86%;
    font-weight: normal;
    color: var(--color-white);
    background-color: var(--color-brand);
  }

  .footer-contact {
    display: inline-block;
    width: 100%;
    height: 20px;
    font-family: var(--font-body);
    font-size: 79%;
    font-weight: normal;
    color: var(--color-white);
    background-color: var(--color-brand);
    padding: 3px 0 0;
  }

  .footer-contact li {
    display: inline-block;
    padding: 0 0.7em;
  }
}

/* ==========================================================================
   Responsive adjustments, widest breakpoint first.
   ========================================================================== */
@layer responsive {

  @media (max-width: 2250px) {

    .header-tagline--compact,
    .site-main .manufacturer--compact,
    .site-main .highlights--compact {
      display: none;
    }
  }

  /* Switch from the sidebar navigation to the SlickNav mobile menu. */
  @media (max-width: 960px) {

    .site-nav {
      display: none;
    }

    .mobile-nav {
      display: block;
      text-align: right;
    }

    .header-badge {
      display: none;
    }

    .site-main {
      width: 100%;
    }

    :where(.site-main) .site-table {
      display: block;
      width: 100%;
      max-width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    :where(.site-main) .site-table > tbody {
      display: table;
      width: 100%;
      border-collapse: inherit;
    }

    .slicknav_menu {
      display: block;
      background-color: transparent;
      position: absolute;
      right: 0;
      top: 0;
      z-index: 999;
    }

    .slicknav_menu .slicknav_btn {
      display: inline-block;
      position: absolute;
      right: 5px;
      top: 0.5em;
      width: 50px;
      height: 45px;
      border-radius: 0;
      margin: 0;
      text-shadow: none;
      float: none;
      background-image: url(../Assets/images/bg_menu_res.png);
      background-repeat: no-repeat;
    }

    .slicknav_menu .slicknav_menutxt {
      display: none;
      line-height: 1.188em;
      float: right;
    }

    .slicknav_menu .slicknav_btn .slicknav_icon {
      display: none;
    }

    .slicknav_nav {
      position: relative;
      top: 2.7em;
      width: 13em;
      padding: var(--space-md) 2em 1.2em 0;
      background-color: var(--color-menu-surface);
    }

    .slicknav_nav li {
      display: block;
      list-style-type: none;
      padding: var(--space-xs) 0 var(--space-xs) var(--space-lg);
    }

    .slicknav_nav li a {
      display: block;
      font-family: var(--font-ui);
      font-size: 86%;
      font-weight: bold;
      color: var(--color-brand);
      text-decoration: none;
    }

    .slicknav_nav li a:hover {
      color: var(--color-accent);
      text-decoration: underline;
      border-radius: 0;
    }

    .slicknav_nav li a.active {
      color: var(--color-brand);
    }

    .slicknav_nav .nav-home a {
      display: block;
      font-family: var(--font-ui);
      font-size: 90%;
      font-style: normal;
      font-weight: bold;
      color: var(--color-brand);
      text-decoration: none;
      padding-bottom: var(--space-sm);
      margin-left: 5.8em;
    }
  }

  @media (max-width: 900px) {

    .header-tagline--desktop {
      display: none;
    }

    .header-tagline--compact {
      display: block;
    }
  }

  @media (max-width: 850px) {

    .header-contact .Tel li {
      padding-right: 8%;
      padding-left: 8%;
    }
  }

  @media (max-width: 750px) {

    .home-welcome {
      padding-top: var(--space-md);
    }
  }

  @media (max-width: 650px) {

    .header-tagline--compact {
      font-size: 150%;
    }

    .home-welcome {
      font-size: 110%;
      padding-bottom: 0.4em;
    }

    .site-main .manufacturer,
    .site-main .highlights {
      display: none;
    }

    .site-main .manufacturer--compact,
    .site-main .highlights--compact {
      display: block;
    }
  }

  @media (max-width: 550px) {

    .header-tagline--compact {
      font-size: 135%;
    }

    .header-contact .Tel li {
      padding-right: 6%;
      padding-left: 6%;
      font-size: 100%;
    }
  }

  @media (max-width: 500px) {

    .header-tagline--compact {
      font-size: 125%;
    }

    body,
    :where(table:not(.site-table)) td,
    :where(table:not(.site-table)) th {
      font-size: var(--font-size-large);
    }
  }

  @media only screen and (min-device-width: 320px) and (max-device-width: 480px) {

    body {
      -webkit-text-size-adjust: none;
    }
  }

  @media (max-width: 450px) {

    .header-tagline--compact {
      font-family: var(--font-ui);
    }

    .header-contact .Tel li {
      padding-right: 4%;
      padding-left: 4%;
      font-size: 95%;
    }
  }

  @media (max-width: 375px) {

    .header-contact .Tel li {
      padding-right: 3%;
      padding-left: 3%;
      font-size: 90%;
    }
  }

  @media (max-width: 320px) {

    .header-contact .Tel li {
      padding-right: 2%;
      padding-left: 2%;
    }
  }
}

/* ==========================================================================
   Utilities — highest-priority helpers and state classes.
   ========================================================================== */
@layer utilities {

  .site-nav a.current,
  .slicknav_nav a.current {
    text-decoration: none;
    cursor: default;
    background-color: var(--color-current-surface);
    color: var(--color-black);
    border: var(--border-width) solid var(--color-current-border);
    padding-right: 8px;
  }

  .text-size-large {
    font-size: var(--font-size-large);
  }

  .text-bold {
    font-weight: bold;
  }

  .text-small {
    font-size: var(--font-size-small);
  }

  .text-emphasis {
    color: var(--color-current-border);
  }

  .text-black {
    color: var(--color-black);
  }

  /* Declared here (not in the site layer) so they win over the
     higher-specificity `.table--catalog td` font-size and padding. */
  :where(table.site-table) .package-details,
  :where(table.site-table) .package-details--wide {
    font-size: var(--font-size-small);
    padding: 0;
  }

  :where(table.site-table) .package-details--wide {
    padding-right: 25px;
  }

  :where(table.site-table) .part-family {
    font-size: var(--font-size-body);
  }

  table.site-table tr.filter-row-hidden {
    display: none;
  }

  table.site-table .filter-cell-hidden {
    visibility: hidden;
  }

  a:focus-visible,
  button:focus-visible,
  input:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
  }

  @media (max-width: 650px) {

    .site-main .product-summary {
      padding-left: var(--space-md);
      padding-right: var(--space-md);
    }
  }

  @media (max-width: 450px) {

    .header-tagline--compact {
      max-width: calc(81% - var(--mobile-menu-clearance));
      margin-left: 19%;
      margin-right: var(--mobile-menu-clearance);
      font-size: var(--font-size-body);
      line-height: 1.25;
    }
  }
}
