/* Tablet only: leave the live desktop, landscape and phone layouts untouched. */
@media (min-width: 768px) and (max-width: 1023px) {
  body.systemdesign-overview-page .sd-overview {
    --sd-pillars-width: calc(100vw - 64px);
    display: flex;
    flex-direction: column;
    flex: none;
    min-height: calc(var(--sd-pillars-width) * .562799044 + 160px);
    padding: 32px 0 28px;
  }
  body.systemdesign-overview-page .sd-overview > .container {
    width: calc(100% - 64px);
    max-width: 1120px;
  }
  body.systemdesign-overview-page .sd-overview-intro {
    padding-bottom: 30px;
  }
  body.systemdesign-overview-page .sd-overview h1 {
    max-width: 1000px;
    margin: 14px 0 18px;
    font-size: clamp(32px, 3.2vw, 38px);
    line-height: 1.15;
  }
  body.systemdesign-overview-page .sd-overview-intro > p:last-child {
    max-width: 900px;
    font-size: 17px;
    line-height: 1.6;
  }
  body.systemdesign-overview-page .sd-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0;
    row-gap: 34px;
  }
  body.systemdesign-overview-page .sd-overview-card:nth-child(n) {
    padding: 16px 24px 8px;
    border: 0;
    border-left: 1px solid rgba(36, 63, 54, .22);
    background: transparent;
  }
  body.systemdesign-overview-page .sd-overview-card:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  body.systemdesign-overview-page .sd-overview-card h2 {
    margin: 16px 0 14px;
    font-size: 26px;
    line-height: 1.2;
  }
  body.systemdesign-overview-page .sd-overview-card p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  body.systemdesign-overview-page .sd-overview-more {
    min-height: 44px;
    padding-top: 14px;
    font-size: 14px;
  }
  body.systemdesign-overview-page .sd-overview-context {
    margin-top: auto;
    padding-top: 20px;
    min-height: 64px;
  }
  body.systemdesign-overview-page .sd-overview-context a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
  }
  body.systemdesign-overview-page .sd-overview::before {
    top: auto;
    bottom: 116px;
    width: var(--sd-pillars-width);
    height: auto;
    aspect-ratio: 1672 / 941;
    background-size: contain !important;
    background-position: center bottom !important;
    clip-path: none;
    transform: translateX(-50%);
    opacity: .38;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 98%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 98%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  body.systemdesign-overview-page .site-footer {
    padding: 36px 0 24px !important;
  }
  body.systemdesign-overview-page .site-footer .footer-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px !important;
    padding: 0 !important;
    align-items: start;
    justify-items: center;
  }
  body.systemdesign-overview-page .site-footer .footer-grid > div {
    grid-area: auto !important;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    text-align: center !important;
    justify-items: center;
    align-items: start !important;
  }
  body.systemdesign-overview-page .site-footer .footer-grid p {
    margin-top: 16px !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
  }
  body.systemdesign-overview-page .site-footer .footer-grid a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0 !important;
    font-size: 14px !important;
  }
  body.systemdesign-overview-page .site-footer .footer-bottom {
    gap: 24px !important;
    margin-top: 24px !important;
    padding-top: 20px !important;
    min-height: 84px !important;
  }
  body.systemdesign-overview-page .site-footer .footer-bottom-logo {
    width: 64px !important;
    height: 64px !important;
  }
}

/* Large touch tablets retain the four-column landscape layout, but reserve
   enough height for the complete motif. Mouse/hover layouts stay untouched. */
@media (hover: none) and (pointer: coarse) and (min-width: 1024px) and (max-width: 1366px) {
  body.systemdesign-overview-page .sd-overview {
    --sd-pillars-width: min(calc(100vw - 64px), 1280px);
    display: flex;
    flex-direction: column;
    flex: none;
    min-height: calc(var(--sd-pillars-width) * .562799044 + 160px);
    padding-top: 32px;
    padding-bottom: 28px;
  }
  body.systemdesign-overview-page .sd-overview::before {
    top: auto;
    bottom: 116px;
    width: var(--sd-pillars-width);
    height: auto;
    aspect-ratio: 1672 / 941;
    background-size: contain !important;
    background-position: center bottom !important;
    clip-path: none;
    transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 98%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 98%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  body.systemdesign-overview-page .sd-overview-context {
    margin-top: auto;
    padding-top: 20px;
    min-height: 64px;
  }
  body.systemdesign-overview-page .sd-overview-context a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* Give tablet perspective text 30px more space below the introduction. */
@media (min-width: 768px) and (max-width: 1023px),
       (hover: none) and (pointer: coarse) and (min-width: 1024px) and (max-width: 1366px) {
  body.systemdesign-overview-page .sd-overview-grid {
    margin-top: 30px;
  }
}
