/* Service Level Agreement pages — additive only, does not modify Webflow output.
   Follows the site's existing design language:
     card    = 1px solid #eeedf3, generous radius, soft layered shadow (.bg-bento-color)
     button  = black, 8px radius, 12px 20px, weight 500, -> primary on hover (.button)
     link    = primary with a bottom border that fades on hover (.rich-text a)
     type    = Inter for UI, Mluvka inherited for clause headings */

/* Two-column layout: sticky contents sidebar on the left, clause content on the right.
   minmax(0, 1fr) on the content column is required — without it the column takes its
   min-content width and wide tables blow the page out horizontally instead of scrolling. */
.sla-layout {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sla-sidebar {
  background-color: #fff;
  border: 1px solid #eeedf3;
  border-radius: 20px;
  box-shadow: 0 32px 24px -12px #0e3b650f, 0 11px 4px #0e3b6503, 0 6px 4px #0e3b6505,
    0 3px 3px #0e3b6508, 0 1px 1px #0e3b650a, 0 0 0 1px #0e3b650a;
  /* The site nav is position:sticky, top:0, 70px tall (.navbar). The sidebar has to
     clear it or its first rows sit underneath while scrolling. 70 + 24 gutter = 94. */
  max-height: calc(100vh - 118px);
  overflow-y: auto;
  padding: 24px;
  position: sticky;
  top: 94px;
}

.rich-text.sla-content {
  max-width: none;
  width: 100%;
}

/* Front matter, at the head of the sidebar */
.sla-meta {
  border-bottom: 1px solid #eeedf3;
  margin: 0 0 18px;
  padding: 0 0 18px;
}
.sla-meta .sla-meta-sub {
  color: #141414;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
  line-height: 1.45;
  margin: 0 0 6px;
}
.sla-meta .sla-meta-rev {
  color: #505e6d;
  font-family: Inter, sans-serif;
  font-size: 13px;
  letter-spacing: .2px;
  line-height: 1.4;
  margin: 0;
}

/* Contents. The title is an <h2>, so the display face and heading size are overridden. */
.sla-contents-title {
  color: #505e6d;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 1.2;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.sla-contents ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sla-contents li {
  color: inherit;
  letter-spacing: normal;
  margin: 0 0 2px;
}
.sla-contents a,
.sla-contents span {
  border-radius: 8px;
  display: block;
  font-family: Inter, sans-serif;
  font-size: 14px;
  letter-spacing: .2px;
  line-height: 1.4;
  padding: 8px 12px;
  text-decoration: none;
  transition: background-color .3s, color .3s;
}
.sla-contents a {
  color: #505e6d;
}
.sla-contents a:hover {
  background-color: #f8f8fa;
  color: var(--main-colors--primary);
}
.sla-contents span[aria-current="true"] {
  background-color: #f8f8fa;
  color: var(--main-colors--primary);
  font-weight: 600;
}

/* Pager */
.sla-pager {
  border-top: 1px solid #eeedf3;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 28px;
}
.sla-pager a {
  border-bottom: 1px solid var(--main-colors--primary);
  color: var(--main-colors--primary);
  font-size: 15px;
  line-height: 1.6;
  max-width: 45%;
  text-decoration: none;
  transition-property: all;
}
.sla-pager a:hover {
  border-bottom-color: #32323200;
  color: var(--main-colors--primary);
}
.sla-pager .sla-pager-spacer { max-width: 45%; }

.sla-full-link {
  margin-top: 28px;
  text-align: center;
  width: 100%;
}
.sla-full-link a {
  background-color: #000;
  border-bottom: 0;
  border-radius: 8px;
  color: #fff;
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  max-width: none;
  padding: 12px 20px;
  text-decoration: none;
  transition: background-color .3s, transform .5s cubic-bezier(.175, .885, .32, 1.275);
}
.sla-full-link a:hover {
  background-color: var(--main-colors--primary);
  color: #fff;
}

/* Tables. The wrapper draws the outer border and radius; cells draw only the inner grid,
   so the two never double up. Wide tables scroll inside the wrapper and never push the
   page into horizontal scrolling. */
.sla-table-wrap {
  -webkit-overflow-scrolling: touch;
  border: 1px solid #eeedf3;
  border-radius: 12px;
  margin: 0 0 28px;
  overflow-x: auto;
}
/* width:100% + a min-width makes cells wrap and the table fit the column on desktop.
   width:max-content instead would size every cell to its natural single-line width and
   force several screens of sideways scrolling on a text-heavy matrix. Below the
   min-width — narrow tablets and phones — the wrapper scrolls, which is the intent. */
.sla-table-wrap table {
  border-collapse: collapse;
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  min-width: 680px;
  table-layout: fixed;
  width: 100%;
}
.sla-table-wrap td,
.sla-table-wrap th { overflow-wrap: break-word; }
.sla-table-wrap th,
.sla-table-wrap td {
  border-bottom: 1px solid #eeedf3;
  border-right: 1px solid #eeedf3;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.sla-table-wrap tr > :last-child { border-right: 0; }
.sla-table-wrap tbody tr:last-child > * { border-bottom: 0; }
.sla-table-wrap th {
  background-color: #f8f8fa;
  color: #141414;
  font-weight: 600;
  letter-spacing: .2px;
}
.sla-table-wrap td { color: #323232; }
.sla-table-wrap td p,
.sla-table-wrap th p {
  font-size: 14px;
  letter-spacing: .2px;
  line-height: 1.55;
  margin: 0 0 8px;
}
.sla-table-wrap td p:last-child,
.sla-table-wrap th p:last-child { margin-bottom: 0; }

.rich-text .sla-clause-heading { margin-top: 0; }

/* Stack the sidebar above the content on tablet and below. */
@media screen and (max-width: 991px) {
  .sla-layout {
    gap: 32px;
    grid-template-columns: minmax(0, 1fr);
  }
  .sla-sidebar {
    max-height: none;
    overflow-y: visible;
    position: static;
  }
  .sla-contents ol {
    display: grid;
    gap: 2px 16px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .sla-sidebar { border-radius: 12px; padding: 20px; }
  .sla-contents ol { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .sla-pager a, .sla-pager .sla-pager-spacer { max-width: 100%; }
}
