.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}

.section-card {
  position: relative;
  display: flex;
  min-height: 210px;
  padding: 1.2rem;
  flex-direction: column;
  overflow: hidden;
  color: var(--md-default-fg-color) !important;
  text-decoration: none !important;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.8rem;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--md-primary-fg-color) 8%, transparent), transparent 58%),
    var(--md-default-bg-color);
  box-shadow: 0 0.2rem 0.6rem rgb(0 0 0 / 10%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.section-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--md-primary-fg-color);
  content: "";
}

.section-card:hover,
.section-card:focus-visible {
  border-color: var(--md-primary-fg-color);
  box-shadow: 0 0.45rem 1rem rgb(0 0 0 / 16%);
  transform: translateY(-0.2rem);
}

.section-card__number {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.9rem;
  place-items: center;
  color: var(--md-primary-bg-color);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 50%;
  background: var(--md-primary-fg-color);
}

.section-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.section-card__description {
  margin-top: 0.55rem;
  color: var(--md-default-fg-color--light);
  font-size: 0.68rem;
  line-height: 1.5;
}

.section-card__action {
  display: flex;
  margin-top: auto;
  padding-top: 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--md-primary-fg-color);
  font-size: 0.7rem;
  font-weight: 700;
}

.section-card--group {
  min-height: 250px;
}

.section-card--group:hover {
  transform: translateY(-0.2rem);
}

.section-card__links {
  display: grid;
  gap: 0.35rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.section-card__links a {
  color: var(--md-primary-fg-color);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.section-card__links a::before {
  margin-right: 0.35rem;
  content: "→";
}

.section-card__links a:hover,
.section-card__links a:focus-visible {
  text-decoration: underline;
}

/* Entregas: estado dos cards de navegação. */
.md-typeset .delivery-status {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.8rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 999px;
  background-color: var(--md-code-bg-color);
  color: var(--md-default-fg-color--light);
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.5;
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 1rem 0 0.75rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 0.8rem;
  background: var(--md-code-bg-color);
  box-shadow: 0 0.25rem 0.8rem rgb(0 0 0 / 12%);
}

.video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.team-panel {
  padding: 1.1rem 1rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 1rem;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--md-primary-fg-color) 6%, transparent), transparent 65%),
    var(--md-default-bg-color);
  box-shadow: 0 0.25rem 0.8rem rgb(0 0 0 / 10%);
}

.team-table {
  width: 100%;
  margin: 0;
  table-layout: fixed;
  border-collapse: collapse !important;
  background: transparent !important;
  box-shadow: none !important;
}

.team-table td {
  width: 16.666%;
  padding: 0.75rem 0.25rem !important;
  vertical-align: top;
  border: 0 !important;
  background: transparent !important;
}

.team-table a {
  color: var(--md-default-fg-color);
  text-decoration: none;
}

.team-table img {
  display: block;
  width: min(100px, 82%);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 0.35rem;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--md-primary-fg-color);
  box-shadow: 0 0.2rem 0.45rem rgb(0 0 0 / 16%);
}

.team-table sub {
  display: inline-block;
  line-height: 1.35;
  font-size: 0.7rem;
}

@media screen and (max-width: 700px) {
  .team-table,
  .team-table tbody {
    display: block;
  }

  .team-table tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-table td {
    display: block;
    width: auto;
  }

  .team-table img {
    width: 82px;
  }
}

@media screen and (max-width: 460px) {
  .section-grid {
    grid-template-columns: 1fr;
  }

  .team-table tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
