/* Give one-column treatment and clinic pages room for their tables and cards. */
@media (min-width: 1000px) {
  body.page-template-page-1column #content.one-column > #inner-content {
    width: min(100% - 4rem, 72rem);
    max-width: none;
  }

  body.page-template-page-1column #content.one-column > #inner-content > #main {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 767px) {
  .entry-content .ortho-cta-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  }

  .entry-content .effect-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  }

  .entry-content .implant-text,
  .entry-content .implant-image,
  .entry-content .intro-image,
  .entry-content .intro-text {
    max-width: 100%;
    min-width: 0 !important; /* The exported WordPress blocks also set inline minimum widths. */
  }
}

.ortho-method-table__label { display: none; }

@media (max-width: 767px) {
  .entry-content .ortho-method-table {
    position: relative;
    overflow: visible;
  }

  .entry-content .ortho-method-table table,
  .entry-content .ortho-method-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 0;
  }

  .entry-content .ortho-method-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .entry-content .ortho-method-table tbody tr {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    border: 1px solid #d0e6eb;
    border-radius: 10px;
    background: #fff;
  }

  .entry-content .ortho-method-table tbody :is(th, td) {
    display: block;
    width: auto;
    padding: .6rem .8rem;
    border: 0;
    font-size: .94rem;
    line-height: 1.55;
  }

  .entry-content .ortho-method-table tbody th {
    border-radius: 9px 9px 0 0;
    background: #edf7f9;
    text-align: left;
  }

  .entry-content .ortho-method-table th a {
    color: #1d5669;
    text-decoration: underline;
    text-underline-offset: .18em;
  }

  .entry-content .ortho-method-table td + td { border-top: 1px solid #e1eef0; }
  .ortho-method-table__label {
    display: block;
    margin-bottom: .15rem;
    color: #215464;
    font-size: .82rem;
    font-weight: 700;
  }
}
