/* App Development illustration: desktop application, connected phone app and notification (.ap). Built on the shared .vz system. */
.ap__app {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
}
.ap__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  border-right: 1px solid var(--vz-line);
  background-color: var(--vz-soft);
  padding: 0.9rem 0;
}
.ap__side i,
.ap__tabbar i {
  display: block;
  border-radius: 0.4rem;
  background-color: var(--vz-bar);
  height: 1.1rem;
  width: 1.1rem;
}
.ap__side .ap__on,
.ap__tabbar .ap__on {
  background-color: var(--primary);
}
.ap__main {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.95rem 1rem 1.1rem;
}
.ap__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.ap__bar strong {
  font-family: var(--headerFont);
  font-size: 1.125rem;
  line-height: 1.1em;
  font-weight: 700;
  color: var(--headerColor);
}
.ap__btn,
.ap__phonebtn {
  border-radius: 3.75rem;
  background-color: var(--secondary);
  padding: 0.3rem 0.8rem;
  white-space: nowrap;
  font-size: 0.75rem;
  line-height: 1.2em;
  font-weight: 700;
  color: var(--primary);
}
.ap__tabs,
.ap__phonetabs {
  display: flex;
  gap: 1.1rem;
  border-bottom: 1px solid var(--vz-line);
}
.ap__tab {
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.4rem;
  font-size: 0.8125rem;
  line-height: 1.2em;
  font-weight: 600;
  color: #5b6b7d;
}
.ap__tab--on {
  border-bottom-color: var(--secondary);
  color: var(--primary);
}
.ap__cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
}
.ap__day {
  border-radius: 0.55rem;
  background-color: #f3f6f9;
  padding: 0.3rem 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.2em;
  font-weight: 600;
  color: #34465a;
}
.ap__day--on {
  background-color: var(--primary);
  color: #fff;
}
.ap__rows {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ap__rows li {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  border: 1px solid var(--vz-line);
  border-radius: 0.8rem;
  padding: 0.45rem 0.6rem;
}
.ap__avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: rgba(67, 183, 255, 0.2);
  height: 1.7rem;
  width: 1.7rem;
  font-size: 0.75rem;
  line-height: 1em;
  font-weight: 700;
  color: var(--vz-text-blue);
}
.ap__what {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.ap__what b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  line-height: 1.2em;
  font-weight: 700;
  color: var(--headerColor);
}
.ap__what small {
  font-size: 0.6875rem;
  line-height: 1.2em;
  color: #5b6b7d;
}
.ap__switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  line-height: 1.2em;
  font-weight: 600;
  color: var(--headerColor);
}
.ap__toggle {
  position: relative;
  display: block;
  border-radius: 1rem;
  background-color: var(--secondary);
  height: 1.15rem;
  width: 2.1rem;
}
.ap__toggle:after {
  content: "";
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  border-radius: 50%;
  background-color: #fff;
  height: 0.85rem;
  width: 0.85rem;
  box-shadow: 0 0.1rem 0.25rem rgba(0, 31, 63, 0.25);
}

/* Account panel (desktop only) */
.ap__acct {
  display: none;
}
@media only screen and (min-width: 48rem) {
  .ap__app {
    grid-template-columns: 2.6rem minmax(0, 1fr) 6.75rem;
  }
  .ap__acct {
    display: grid;
    align-content: start;
    gap: 0.5rem;
    border-left: 1px solid var(--vz-line);
    padding: 0.95rem 0.8rem;
  }
}
.ap__me {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: var(--primary);
  height: 2.1rem;
  width: 2.1rem;
  font-size: 0.75rem;
  line-height: 1em;
  font-weight: 700;
  color: #fff;
}
.ap__me--sm {
  height: 1.5rem;
  width: 1.5rem;
  font-size: 0.5625rem;
}
.ap__notes {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
}
.ap__notes svg {
  flex: none;
  color: var(--vz-text-blue);
}
.ap__notes b {
  border-radius: 1rem;
  background-color: var(--secondary);
  padding: 0.05rem 0.4rem;
  font-size: 0.6875rem;
  color: var(--primary);
}
.ap__acct .vz__bar {
  height: 0.38rem;
}

/* Notification */
.ap__toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  width: fit-content;
}
.ap__toast svg {
  flex: none;
  border-radius: 50%;
  background-color: var(--secondary);
  padding: 4px;
  height: 1.55rem;
  width: 1.55rem;
  color: var(--primary);
}
.ap__toast span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.ap__toast b {
  font-size: 0.8125rem;
  line-height: 1.2em;
  font-weight: 700;
  color: var(--headerColor);
}
.ap__toast small {
  font-size: 0.6875rem;
  line-height: 1.2em;
  color: #5b6b7d;
}

/* Connected phone app */
.ap__phone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: hidden;
  border: 5px solid var(--primary);
  border-radius: 1.6rem;
  padding: 1.15rem 0.65rem 0;
  width: 9.25rem;
}
.ap__notch {
  position: absolute;
  top: 0.3rem;
  left: 50%;
  border-radius: 1rem;
  background-color: var(--primary);
  height: 0.28rem;
  width: 2rem;
  transform: translateX(-50%);
}
.ap__phonehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ap__phonehead strong {
  font-family: var(--headerFont);
  font-size: 0.9375rem;
  line-height: 1.1em;
  font-weight: 700;
  color: var(--headerColor);
}
.ap__phonetabs {
  gap: 0.8rem;
}
.ap__phonetabs .ap__tab {
  padding-bottom: 0.3rem;
  font-size: 0.6875rem;
}
.ap__phonerows {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ap__phonerows li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr) 0.6rem;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  border: 1px solid var(--vz-line);
  border-radius: 0.65rem;
  padding: 0.35rem 0.45rem;
}
.ap__phonerows .ap__avatar {
  height: 1.4rem;
  width: 1.4rem;
  font-size: 0.625rem;
}
.ap__phonerows .vz__bar {
  height: 0.32rem;
}
.ap__dot {
  display: block;
  border-radius: 50%;
  background-color: var(--secondary);
  height: 0.5rem;
  width: 0.5rem;
}
.ap__dot--wait {
  background-color: #9aa8b8;
}
.ap__phonebtn {
  display: block;
  padding: 0.38rem 0.5rem;
  text-align: center;
}
.ap__tabbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0.15rem -0.65rem 0;
  border-top: 1px solid var(--vz-line);
  background-color: var(--vz-soft);
  padding: 0.55rem 0.5rem 0.6rem;
}
.ap__tabbar i {
  height: 0.95rem;
  width: 0.95rem;
}

/* Desktop: the phone overlaps the application's lower right, the notification its lower left. */
@media only screen and (min-width: 64rem) {
  .ap .vz__stage {
    padding-bottom: 4.25rem;
  }
  .ap__phone {
    position: absolute;
    right: -1.75rem;
    bottom: 0;
    z-index: 3;
  }
  .ap__toast {
    bottom: 1.25rem;
    left: -1.5rem;
  }
}

/* Smaller screens: the notification and the phone sit side by side, the phone overlapping the window's lower edge. */
@media only screen and (max-width: 63.999rem) {
  .ap .vz__stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0 0.75rem;
  }
  .ap .vz__card {
    grid-column: 1 / -1;
  }
  .ap__toast {
    position: relative;
    z-index: 2;
    grid-column: 1;
    align-self: center;
    margin: 0.9rem 0 0 0.4rem;
  }
  .ap__phone {
    position: relative;
    z-index: 2;
    grid-column: 2;
    margin: -1.1rem 0.5rem 0 0;
  }
  .ap__main {
    padding-bottom: 1.8rem;
  }
}
@media only screen and (max-width: 30rem) {
  .ap__main {
    gap: 0.6rem;
    padding: 0.8rem 0.8rem 0.9rem;
  }
  .ap__switch {
    display: none;
  }
  .ap__rows li {
    padding: 0.35rem 0.5rem;
  }
  .ap__rows li:nth-child(3) {
    display: none;
  }
  .ap__bar strong {
    font-size: 1rem;
  }
  .ap__toast {
    align-self: start;
    margin-top: 0.7rem;
  }
}

/* Dark mode */
html.dark-mode .ap__tab {
  color: rgba(255, 255, 255, 0.68);
}
html.dark-mode .ap__tab--on {
  color: #fff;
}
html.dark-mode .ap__day {
  background-color: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}
html.dark-mode .ap__day--on {
  background-color: var(--secondary);
  color: var(--primary);
}
html.dark-mode .ap__side .ap__on,
html.dark-mode .ap__tabbar .ap__on {
  background-color: var(--secondary);
}
html.dark-mode .ap__bar strong,
html.dark-mode .ap__what b,
html.dark-mode .ap__switch,
html.dark-mode .ap__toast b,
html.dark-mode .ap__phonehead strong {
  color: #fff;
}
html.dark-mode .ap__what small,
html.dark-mode .ap__toast small {
  color: rgba(255, 255, 255, 0.68);
}
html.dark-mode .ap__me {
  background-color: #fff;
  color: var(--primary);
}
html.dark-mode .ap__phone {
  border-color: #35495a;
}
html.dark-mode .ap__notch {
  background-color: #35495a;
}
