.tutoring-main {
  padding-bottom: 3rem;
}

.tutoring-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.tutoring-overview p {
  margin: 0;
  color: var(--text-soft);
}

.tutoring-overview p span {
  padding: 0 0.4rem;
}

.tutoring-jump {
  flex-shrink: 0;
  color: var(--accent-deep);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.tutoring-section {
  padding-top: 2.75rem;
  scroll-margin-top: 1.5rem;
}

.tutoring-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tutoring-section-heading h2 {
  margin: 0 0 0.45rem;
}

.tutoring-section-heading p {
  margin: 0;
  color: var(--text-soft);
}

.tutoring-table-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.tutoring-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
}

.tutoring-table thead {
  background: var(--charcoal);
  color: var(--ivory-soft);
}

.tutoring-table thead th {
  padding: 0.95rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.tutoring-table thead th:first-child {
  width: 17%;
}

.tutoring-table thead th:nth-child(2) {
  width: 46%;
}

.tutoring-table tbody tr + tr {
  border-top: 2px solid rgba(17, 21, 20, 0.18);
}

.tutoring-table tbody tr:nth-child(odd) {
  background: var(--paper);
}

.tutoring-table tbody tr:nth-child(even) {
  background: rgba(62, 140, 140, 0.12);
}

.tutoring-table tbody th,
.tutoring-table td {
  padding: 1.45rem 1.4rem;
  vertical-align: top;
  overflow-wrap: break-word;
}

.tutoring-table tbody th {
  border-left: 4px solid var(--accent);
  color: var(--accent-deep);
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tutoring-table td {
  border-left: 1px solid rgba(17, 21, 20, 0.14);
}

.tutoring-table td strong {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.tutoring-table td p {
  margin: 0;
  color: var(--text-soft);
}

.tutoring-table td:last-child {
  color: var(--text-soft);
}

.tutoring-paths-table thead th:first-child {
  width: 28%;
}

.tutoring-paths-table thead th:nth-child(2) {
  width: auto;
}

.tutoring-overview-table thead th:first-child {
  width: 34%;
}

.tutoring-overview-table thead th:nth-child(2) {
  width: auto;
}

.tutoring-overview-table tbody th {
  color: var(--text);
  font-size: 1rem;
}

.tutoring-note {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--ivory-soft);
}

.tutoring-note h2 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
}

.tutoring-note p {
  max-width: 54rem;
  margin: 0;
  color: var(--text-soft);
}

.tutoring-note .tutoring-note-contact {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.tutoring-note a {
  color: var(--accent-deep);
  text-underline-offset: 0.2em;
}

@media (max-width: 819px) {
  .tutoring-overview,
  .tutoring-section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .tutoring-section {
    padding-top: 2rem;
  }

  .tutoring-table thead th,
  .tutoring-table tbody th,
  .tutoring-table td {
    padding: 1rem;
  }

  .tutoring-table thead th:first-child {
    width: 19%;
  }

  .tutoring-paths-table thead th:first-child {
    width: 32%;
  }

  .tutoring-overview-table thead th:first-child {
    width: 36%;
  }
}

@media (max-width: 599px) {
  .tutoring-table-shell {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .tutoring-table,
  .tutoring-table tbody,
  .tutoring-table tbody tr,
  .tutoring-table tbody th,
  .tutoring-table td {
    display: block;
    width: 100%;
  }

  .tutoring-table tbody {
    display: grid;
    gap: 0.85rem;
  }

  .tutoring-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .tutoring-table tbody tr {
    padding: 1.25rem;
    border: 1px solid rgba(17, 21, 20, 0.18);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
  }

  .tutoring-table tbody tr + tr {
    border-top: 1px solid rgba(17, 21, 20, 0.18);
  }

  .tutoring-table tbody th,
  .tutoring-table td {
    padding: 0;
    border-left: 0;
  }

  .tutoring-table tbody th {
    margin-bottom: 0.75rem;
  }

  .tutoring-table td + td {
    margin-top: 0.85rem;
  }

  .tutoring-table td::before {
    display: block;
    margin-bottom: 0.25rem;
    content: attr(data-label);
    color: var(--text-soft);
    font-size: 0.875rem;
    font-weight: 600;
  }

  .tutoring-table td:last-child {
    border-top: 1px solid var(--line);
    padding-top: 0.85rem;
  }

  .tutoring-note {
    padding: 1.25rem;
  }
}
