/* Product Pages

   developer:   estevaot
   requires:    /common/framework/css/framework.en.css
                /common/framework/css/gui.en.css
   ========================================================================== */

:root {
  /* main colors */
  --main-color:#dd1100;
  --sub-color:#dd110026;
  --third-color:#009e92;
  --dark-color: #3a3a3a;
  /* light */
  --main-color-light: rgba(221, 17, 0, 0.04);
  --light-gray: #fbfbfb;
  /* links */
  --link-color-hover: #F77700;
}


/* ==========================================================================
   Structure
   ========================================================================== */
#page {
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  color: #707070;
  padding-top: 0;
  /* content wrapper */
  & .wrapper { 
    margin: 0 auto;
    max-width: 1130px;
    padding: 3rem 0;
  }
  /* sections */
  & section {
    scroll-margin-top: 50px;
    margin-inline: 2rem;
    & + section .wrapper {
      border-top:1px solid #ddd;
    }
  }
  & code {
    display: inline-block;
    font-family: 'DM Mono',monospace;
    font-size: .82rem;
    background: #f4f4f4;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    padding: .05rem .35rem;
    color: #3a3a3a;
  }
  & img { max-width:100%; }
  & details > summary {
    list-style-type: none;
    outline: none;
  }
  & details>summary::-webkit-details-marker {
    display: none;
  }
  & hr.separator {
    border: none;
    border-top:1px solid #ddd;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
#page #hero {
  & h1 {
    font-size: 3.75rem;
    line-height: 3.125rem;
    text-transform: uppercase;
    text-align: center;
    color: var(--main-color);
    line-height: 1.1;
    letter-spacing: -1px;
    & span { color: #404040; }
  }
  & h2 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 3rem;
    color: #555;
  }
  & p {
    font-size: 1.375rem;
    line-height: 2.188rem;
  }
}

/* ==========================================================================
   Nav
   ========================================================================== */
#page #page-nav {
  position: sticky;
  background: var(--main-color);
  width: 100%;
  z-index: 999;
  top: 50px;      
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  & .wrapper {
    display: grid;
    grid-template-columns: auto auto;
    padding-block: 0;
    padding-inline: 1rem;
  }
  & .brand {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1rem;
    cursor: pointer;
  }
  & > ul {
    margin: 0 auto;
    padding: 0 0.5rem;
  }
  & li { display: inline-block; }
  & a {
    color: #fff;
    display: block;
    font-size: 1.125rem;
    line-height: 1;
    padding: 1.125rem 0.9375rem;
    text-decoration: none;
    white-space: nowrap;
    &:hover, &.active {
      color: #ffcc51;
    }
  }
} 

/* ==========================================================================
   Texts
   ========================================================================== */
#page {
  & h2 {
    color: var(--main-color);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0.1875rem auto .75rem;
    text-align: left;
    &.h2_alternative {
      font-size: 1.375rem;
      font-weight: 600;
      color: #404040;
      text-transform: uppercase;
      margin-top: 2rem;
      padding-bottom: .5rem;
    }
  }  
  & h2 + p { 
    color: #6f6f6f
    font-size: 1rem;
    margin-bottom: 0;
  }
  & .contrast h2 { color:#222; }
  & h3 {
    color: var(--sub-color);
    font-size: 1.625rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 2rem 0 0;
  }
  & a {
    color: var(--main-color);
    &:hover {
      color: var(--link-color-hover);
    }
  }
  & p {
    font-size: 1.375rem;
    color: #404040;
    line-height: 2.188rem;
    font-weight: 400;
    &.sub {
      color: #6f6f6f;
      font-size: 1rem;
      margin-bottom: 0;
    }
  }
  & .subtitle {
    font-size: 1.5625rem;
    font-weight: 300;
    line-height: 2.25rem;
    margin-bottom: 1rem;
  }
}

/* ==========================================================================
   Resources #
   ========================================================================== */
#page #resources {
  & h3 {
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: normal;
    color: #404040;
  }
  & h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: normal;
    color: #404040;
    margin:0;
  }
  & .cards .card { transition: background-color .15s; }
  & .cards a.card:hover {
    border: solid 1px var(--sub-color);
    background-color: var(--main-color-light);
    & h4 { color: var(--main-color); }
  }
}

/* ==========================================================================
   Cards
   ========================================================================== */
#page .cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
  padding-top: .5rem;
}

#page .card {
  border: 1px solid #e2e2e2;
  border-radius: .5rem;
  padding: 1.5rem;
  & .card__heading {
    color: var(--main-color);
    font-size: .875rem;
    font-weight: 900;
    line-height: .875rem;
    text-transform: uppercase;
    margin-bottom: 0;
  }
  & p {
    font-size: 1rem;
    line-height: 1.5;
  }
  & h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-top: .1rem;
    margin-bottom: .5rem;
  }
}

#page :is(#how-it-works,#right-size) .cards {
  padding-top: 1.5rem;
}

/* ==========================================================================
   Use cases
   ========================================================================== */
#page ul.list { 
  padding-left: 1rem; 
  & li {
    color: #444;
    padding: .4rem 0;
    position: relative;
  }
  & li::before {
    color: var(--main-color);
    content: '▪';
    display: block;
    margin-left: -1rem;
    position: absolute;
  }
}

#page #use-cases {
  & h3 {
    color: #e60000;
    font-size: .875rem;
    font-weight: 600;
    text-transform: uppercase;
  }
  & h3 + p {
    color: #7e7e7e;
    font-size: .875rem;
    font-style: italic;
    margin-bottom: 1rem;
  }
} 

/* ==========================================================================
   Table
   ========================================================================== */
#page .tw {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid #e4e4e4;
  border-radius: 4px;
  & table {
    width: 100%;
    border-collapse: collapse;
    font-size: .96rem;
    min-width: 620px;    
    & thead th {
      text-align: center;
      padding: 12px 14px;
      font-size: .78rem;
      font-weight: 700;
      color: #555;
      background: #fff;
      border-bottom: 1px solid #e4e4e4;
      vertical-align: bottom;
    }
    & thead th.f {
      text-align: left;
      width: 40%;
    }
    & thead th .n {
      display: block;
      color: var(--main-color);
      font-weight: 700;
    }
    & thead th .m {
      display: block;
      font-size: .7rem;
      font-weight: 400;
      color: #6f6f6f;
    }
    tbody th {
      text-align: left;
      font-weight: 400;
      padding: 9px 14px;
      border-bottom: 1px solid #e4e4e4;
      color: #555;
    }
    & tbody td {
      text-align: center;
      padding: 9px 14px;
      border-bottom: 1px solid #e4e4e4;
    }
    & tr.grp th {
      background: #f2f4f6;
      font-weight: 700;
      color: #2b2b2b;
      font-size: .8rem;
      letter-spacing: .02em;
      padding: 8px 14px;
    }
    & tr.grp td {
      background: #f2f4f6;
      border-bottom: 1px solid #e4e4e4
    }
  }
  & .ck {
    display: inline-block;
    vertical-align: -2px;
    & path {
      fill: none;
      stroke: var(--main-color);
      stroke-width: 3;
      stroke-linecap: square;
    }
  }
  & .info {
    position: relative;
    display: inline-block;
    margin-left: 7px;
    vertical-align: 1px;
    font-weight: 400;
    & > button {
      display: block;
      width: 16px;
      height: 16px;
      padding: 0;
      border: 1px solid #d0d0d0;
      border-radius: 2px;
      background: #fff;
      color: #8a8a8a;
      font: 700 .64rem/14px 'Source Sans Pro',Arial,sans-serif;
      text-align: center;
      cursor: help;
    }
    & .tip {
      position: absolute;
      left: calc(100% + 10px);
      top: -12px;
      width: 246px;
      padding: 12px 15px;
      background: #fff;
      border: 1px solid #d7d7d7;
      border-radius: 3px;
      box-shadow: 0 2px 9px rgba(0,0,0,.10);
      font-size: .85rem;
      font-weight: 400;
      line-height: 1.5;
      color: #5c5c5c;
      text-align: left;
      letter-spacing: 0;
      text-transform: none;
      z-index: 20;
      visibility: hidden;
      opacity: 0;
      transition: opacity .12s;
    }
    & .tip::before {
      content: "";
      position: absolute;
      left: -6px;
      top: 16px;
      width: 10px;
      height: 10px;
      background: #fff;
      border-left: 1px solid #d7d7d7;
      border-bottom: 1px solid #d7d7d7;
      transform: rotate(45deg);
    }
    & > button:hover, & > button:focus {
      border-color: var(--red);
      color: var(--red);
      outline: none;
    }
    & > button:hover + .tip, 
    & > button:focus + .tip, 
    & .tip:hover {
      visibility: visible;
      opacity: 1;
    }
  }
}
#page #benefits {
  & .tw { display:none; }
  & .open-benefits {
    color:var(--main-color);
    & svg { transition: transform .2s; }
    &:hover {
      color:var(--link-color-hover); 
      & svg {
        stroke: var(--link-color-hover);
      }
    }
  }
  &.open {
    & .tw { display:block; }
    & .open-benefits svg { transform: rotate(-180deg); }
  }
}

/* ==========================================================================
   Stripes
   ========================================================================== */
#page .full-stripe {
  background: var(--main-color);
  padding-inline: 2rem;
  & h2 {
    font-size:1.375rem;
    line-height:1.375rem;
    text-transform: uppercase;
    color: #fff;
  }
  & p {
    font-size: 1rem;
    line-height: 1.25rem;
    letter-spacing: -.07px;
    color: #fff;
  }
  & .btn { margin-inline:auto; }
  @media (600px <= width <= 730px) {
    .btn {
      margin-left: 0;
      margin-top: 1rem;
    }
  } 
}

/* ==========================================================================
   Buttons
   ========================================================================== */
#page {
  & a.btn {
    font-weight: 600;
    border-radius: 6px;
    display: block;
    max-width: fit-content;
    padding: 0.5rem 1rem;
    text-align: center;
    background: var(--main-color);
    border: 1px solid var(--main-color);
    color: #fff;
    &:hover {
      background: #fff;
      border-color: var(--main-color);
      color: var(--main-color);
    }
  }
  & a.btn.btn-outline {
    background: transparent;
    border:1px solid #fff;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    &:hover {
      background: var(--main-color);
      color: #fff;
    }
    &.btn-outline__white {
      border:1px solid #fff;
      color: #fff
    }
    &.btn-outline__white:hover {
      background: #fff;
      color: var(--main-color);
    }
  } 
}

/* ==========================================================================
   Misc
   ========================================================================== */
#page {
  .color-main, .color-main-hover:hover { color: var(--main-color) !important; }
  .color-sub, .color-sub-hover:hover { color: var(--sub-color) !important; }
  .color-third, .color-third-hover:hover { color: var(--third-color) !important; }
  .color-dark { color: var(--dark-color) !important; }

  .bg-main, .bg-main-hover:hover { background-color: var(--main-color) !important; }
  .bg-sub, .bg-sub-hover:hover { background-color: var(--sub-color) !important; }
  .bg-third, .bg-third-hover:hover { background-color: var(--third-color) !important; }
  .bg-main-light, .bg-main-light-hover:hover { background-color: var(--main-color-light) !important; }
  .bg-dark { background-color:  var(--dark-color) !important; }
  .bg-light-gray { background-color:  var(--light-gray) !important; }

  .border-color-main { border-color: var(--main-color) !important; }
  .border-color-dark { border-color:  var(--dark-color) !important; }
  .border-color-sub { border-color:  var(--sub-color) !important; }
  .border-color-thid { border-color:  var(--third-color) !important; }

  .margin-bt-3-2 { margin-block:1.5rem !important; }
  .margin-t-3-2 { margin-top:1.5rem !important; }
  .margin-b-3-2 { margin-bottom:1.5rem !important; }
}

/* ==========================================================================
   Media
   ========================================================================== */
@media all and (max-width: 900px) {
  #page #hero {
    & h1 { font-size:2.95rem }
    & h2 { font-size:1.525rem }
  }
  #page #page-nav a {
    font-size: .9rem;
    padding-inline: .2rem;
  }
}
@media all and (max-width: 600px) {
  #page {
    & h2 { font-size:1.5rem; }
    & h3 { font-size:1.188rem; }
    & p { 
      font-size:1.25rem;
      line-height:1.5; 
    }
  }
  #page #page-header .wrapper {     
    padding-top: 2rem;
    padding-bottom: 2.8125rem; 
  }
  #page #page-nav {    
    & .wrapper {       
      grid-template-columns: 1fr;
      padding-inline:0; 
      & > :is(div,ul) { padding-inline:1rem; }
    }
    & .brand {
      display: flex;
      align-items: center;
      height: 40px;
      cursor: pointer;
      &::after {
        content: "";
        display: inline-block;
        width: 10px;
        height: 7px;
        margin-left: 5px;
        background: url(/network-licensing/img/arrow-down.png) no-repeat;
        background-size: 10px 7px;
        filter: brightness(10);
        margin-top: 2px;
      }   
      &:not(.open):hover {
        background-color: #c92012;
      }   
    }
    & .menu {
      display: none;
      grid-template-columns: 1;
      width: 100%;
      background-color: #c92012;
      & > li:not(:last-child) {
        border-bottom: 1px solid #ad0b0b;
      }
    }
    & .brand.open {
      &.open::after {
        transform: rotate(180deg);
      }
      & + .menu {
        display: grid;
      }
    }
  }
  #page #hero {
    & h1 {
      font-size: 2.375rem;
      line-height: 2.438rem;
    }
    & h2 { 
      font-size:1.375rem;
      margin-bottom: 1.5rem;
    }
    & p {
      font-size: 1.25rem;
      line-height: 1.5;
    }
  }
  #page .cards { grid-template-columns: 1fr; }
  #page .full-stripe {
    & h2, & p { text-align:center; }
  }
}